Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. <asp:Textbox> Width is not working

<asp:Textbox> Width is not working

Scheduled Pinned Locked Moved ASP.NET
comhelp
8 Posts 6 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    murali_utr
    wrote on last edited by
    #1

    using multiline text box. trying to set width in px. but it's not working. Need Help. Thanks in Advance.

    Have A Nice Day! Murali.M Blog

    S Richard DeemingR A R 4 Replies Last reply
    0
    • M murali_utr

      using multiline text box. trying to set width in px. but it's not working. Need Help. Thanks in Advance.

      Have A Nice Day! Murali.M Blog

      S Offline
      S Offline
      SumitChandra
      wrote on last edited by
      #2

      It should work now!

      M M 2 Replies Last reply
      0
      • S SumitChandra

        It should work now!

        M Offline
        M Offline
        murali_utr
        wrote on last edited by
        #3

        hi thanks for your reply. Problem is width is display in design time, but different size is shown in runtime.

        Have A Nice Day! Murali.M Blog

        S 1 Reply Last reply
        0
        • M murali_utr

          using multiline text box. trying to set width in px. but it's not working. Need Help. Thanks in Advance.

          Have A Nice Day! Murali.M Blog

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Use your browser's developer tools to inspect the generated <textarea> element. You probably have other CSS styles overriding the width.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          1 Reply Last reply
          0
          • S SumitChandra

            It should work now!

            M Offline
            M Offline
            Member 2284654
            wrote on last edited by
            #5

            test

            1 Reply Last reply
            0
            • M murali_utr

              hi thanks for your reply. Problem is width is display in design time, but different size is shown in runtime.

              Have A Nice Day! Murali.M Blog

              S Offline
              S Offline
              SumitChandra
              wrote on last edited by
              #6

              I didn't get you.. can u send the pics?

              1 Reply Last reply
              0
              • M murali_utr

                using multiline text box. trying to set width in px. but it's not working. Need Help. Thanks in Advance.

                Have A Nice Day! Murali.M Blog

                A Offline
                A Offline
                Arunima Panda
                wrote on last edited by
                #7

                It should work as per syntax. May be there is some style is defined for textbox in any external css file that's why it is overriding the width during runtime. So, add css class to override width in Multiline textbox.

                1 Reply Last reply
                0
                • M murali_utr

                  using multiline text box. trying to set width in px. but it's not working. Need Help. Thanks in Advance.

                  Have A Nice Day! Murali.M Blog

                  R Offline
                  R Offline
                  RA UL PATEL
                  wrote on last edited by
                  #8

                  You can use Columns property to increase with for multiline texxbox.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups