homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

problem with text input width

Msg#: 4392190 posted 9:06 pm on Nov 29, 2011 (gmt 0)

Hi there,

I have a table (in a form) with a cell where the user can enter a number. The client required that the number be divided into 4 fields with a maximum input length of 4 to make it easier to read. So instead of 1 text input i threw in 4 and shortened their width with css (gave a class to the input fields and then applied css width to that class).
The input looks as expected, the only problem is, the table cell stretches out unnecessarily in width as if it were counting with the original text input width or what.. So, there's my table, with the number input column about 3x as wide as it needs to be, and the rest of the columns being squeezed in so each cell has to take up more space vertically.
Any ideas why this might be and what to do with it?



Msg#: 4392190 posted 9:11 pm on Nov 29, 2011 (gmt 0)

The only thing that came to my mind to try was to limit the width of the cell in question itself, but this in turn makes the text inputs squeeze on each other and still maintains the redundant space in the cell.. i dont get it..

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved