Closed Bug 165132 Opened 23 years ago Closed 23 years ago

CSS position:absolute; height:20px causes text overflow.

Categories

(SeaMonkey :: General, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gaute.sandvik, Assigned: asa)

Details

Text inside div is flowing out of it's bottom border. GDS example: <html> <head> <title>Untitled</title> <style> #box1{ position:absolute; border:solid black 1px; background-color:pink; width:40px; height:20px; } </style> </head> <body> <div id="box1"> box1<br> a<br> b<br> c<br> </div> </body> </html>
Yes, it's because you have set 'height:20px'. -->INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Mid-air! But what I was going to say was... This is the correct behaviour. The default value for the CSS2 overflow property is 'visible', indicating that 'content is not clipped, i.e., it may be rendered outside the block box.' (CSS2 11.1) IE incorrectly grows the height of the containing DIV to contain the text. Mozilla allows the text to spill out. Closing as INVALID.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.