MinnRick
asked on
Whitespace Above Text In a DIV With No Padding
Hello Experts -
A quick 500 points for someone.. Using the following DIV and assuming no further CSS specified elsewhere, why is there whitespace between the top of the text and the top border?
-- Rick
A quick 500 points for someone.. Using the following DIV and assuming no further CSS specified elsewhere, why is there whitespace between the top of the text and the top border?
<div style="border:1px solid black; height:30px; width:100px; padding:0; vertical-align:top;">Fubar</div>
The left edge of the text sits immediately next to the left border (as expected) but the top doesn't do the same. Why, and how do I get rid of that whitespace? Thanks.-- Rick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER