I usually have div layer using hte class, but i recently applied it to a text input. The problem is when I have the text input floating next to a div layer of the same class, the value in the text input is not in the same location as the div. They use the same “page” class, so I’m lost on why the input is displaying different. I’ve added ‘display:block’ to the input, but that didn’t change anything.
What other CSS do I have to change or add to get the text input to display exactly like the DIV?
Could you post a screenshot of what you are currently seeing (and say which browser) AND/OR a link (this would be extra helpful because maybe there’s other code/styles interfering)
and then a screenshot or image showing what you want to accomplish? I think I know what you want but not entirely sure.
Remember browsers exert more control over styling form controls than over plain elements like divs.
The input type=“submit” uses the “content” box model and padding is included on the inside and does not increase the width or height. (Some browsers also add other proprietary properties which may result in minor differences though.)
the input.page option seemed to be the trick for firefox, but IE doesn’t like it and keeps the value at the top of the area (and Safari shows about a pixel off)
It should have been 30px the same as the height of the line but IE has rounding errors so you usually end up adding or subtracting a pixel depending on font-size.