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. how to make text box lenth as static in a table

how to make text box lenth as static in a table

Scheduled Pinned Locked Moved ASP.NET
sysadminarchitecturehelptutorial
2 Posts 2 Posters 0 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.
  • J Offline
    J Offline
    Janu_M
    wrote on last edited by
    #1

    HI I am new to this forum. I have a problem in text box that is in table.We are using the length of that textbox in %. When a long data is coming inside the textbox the length is increasing.If we are using px,then the length is not increasing according to resolution.That means it is fixed.Also we used overflow as hidden.it is not working perfectly.I am giving my code plz have a look on it. <tr height= "25px"> <td style="padding-left:1%;"><asp:Label ID="label9" runat ="server" Text ="Subject" ForeColor ="Black" Font-Size ="11px" Font-Names="Tahoma"></asp:Label></td> <td colspan="3" ><asp:TextBox ID="txtSubject" runat ="server" Width ="97%" Font-Size ="11px" Font-Names="Tahoma" Height ="12px" Text="" MaxLength="200" BorderColor="#6699CC" BorderStyle="Solid" BorderWidth="1px" style="overflow:hidden;position:absolute;"></asp:TextBox></td> </tr>

    C 1 Reply Last reply
    0
    • J Janu_M

      HI I am new to this forum. I have a problem in text box that is in table.We are using the length of that textbox in %. When a long data is coming inside the textbox the length is increasing.If we are using px,then the length is not increasing according to resolution.That means it is fixed.Also we used overflow as hidden.it is not working perfectly.I am giving my code plz have a look on it. <tr height= "25px"> <td style="padding-left:1%;"><asp:Label ID="label9" runat ="server" Text ="Subject" ForeColor ="Black" Font-Size ="11px" Font-Names="Tahoma"></asp:Label></td> <td colspan="3" ><asp:TextBox ID="txtSubject" runat ="server" Width ="97%" Font-Size ="11px" Font-Names="Tahoma" Height ="12px" Text="" MaxLength="200" BorderColor="#6699CC" BorderStyle="Solid" BorderWidth="1px" style="overflow:hidden;position:absolute;"></asp:TextBox></td> </tr>

      C Offline
      C Offline
      Crooze21
      wrote on last edited by
      #2

      put width in px for td tag and then try.

      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