I have a form that is within a span. The span sets the font-size at 10px, which works wonderfully for the text that is inside the form. The problem is that the form elements; a text box and a submit button, are both rendered as if the font-size was 12px, which makes them look oversized in the context of the form. I'm wondering if there is any way to set the size of these elements either at the element level or the form level. All I can find online are referrences to the size of the input box, which is not what I'm looking for at all. It's not the width, it's the height. Of course, if the height were set to 10px it would effect the width as well, which is actually a good thing. Anyway, given a generic piece of code such as
and assuming that the font size in the span is set to 10px, how can I keep my input box and submit button from towering over the text?
Code:
<span id="tenpixtext"><form method="post" action="somescript.php">text <input type="text" name="name" size="10" /><br>
<input type="submit" value="click here" /></form></span>