|
jeffw -> aaarrrggghhh! text overflowing a simple div help! (3/11/2004 19:42:45)
|
OK, i have a very simple absolutely positioned div that has a specified width and height. I have text overflowing this horizontally, without automatically breaking lines and staying within the boundaries of the div. This goes against all of my experience w/ CSS and the behavior div/spans and anything that contains text. It seems like I have tried eveything, but nothing works. In IE/WIN, the div expands to hold the text. In MOZ, the div stays the proper size, but the text just overflows to the right. I'm stuck! Any help appreciated! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link rel="stylesheet" href="global.css" type="text/css" media="screen" /> </head> <body> <div id="crap">aaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbb</div> </body> </html> ----------------------------- #crap {position: absolute; top: 100px; left: 125px; width: 100px; height: 400px; border: 1px solid #000;}
|
|
|
|