Quote:
So, make it a little smaller. Padding and border can be set to ems
too, so just add them up to be 15em together. |
It appears that IE and FireFox already have ideas about what padding and
border should be used. For instance in FireFox the left border is 2px, the
right border is 1px. The left and right padding are 1px.
I can force these to use em e.g.
<input type='text' style='width:14.6em;border: 0.1em groove; padding:
0.1em 0.1em 0.1em 0.1em; font-size:1em'>
Which does fit perfectly... however it doesn't look like a normal text box
because:
1) As the text size is increased, the border thickness increases
2) I have had to force a text box's font size of 1em in order that the
calulations work (the font size in a text box is usully less than the
surronding text.
Thanks for your ideas though! I just wish setting a text box's display type
to block worked as some others thought it would!
Piers