Ok, the usual works fine in IE, but not in FF, so wondering how to text FF to wrap the text.
there are two stylesheets, the first has the CSS for browsetab, the other has the CSS for alpha.
CSS code
HTML codeCode:.alpha { color: #e76931; background:white; width: 243px; font-size: 9px; font-family: verdana, arial, sans-serif; font-weight:light; margin:10px 0px 10px 0px; border: green solid 1px; white-space: normal; } .browsetab { text-align: left; background: white; padding: 0px; border-left: 0px solid white; border-top: none; border-bottom: none; border-right: none; margin: 0px; width:249px; }
I have tried putting a <P> inside the div.alpha but it doesn't seem to make any difference.HTML Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <LINK REL="stylesheet" type="text/css" href="browesetab.css" /> <link REL="stylesheet" type="text/css" href="alpha.css" /> </head> <body class="browsetab"> <div CLASS="alpha"> -A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z </div> </body> </html>
I just want the alphabet to wrap at width 243px.
I've tried white-space: normal
and now I give up.
The reason width is important, is that this HTML is in an IFRAME, absolute width 250px, and so if the size of browsetab is > 250px a horizontal scrollbar appears - yuck.
Let me know if I haven't clarified the issue.
thanx stax and stax



Reply With Quote



except that in order to set the menu to expand to the right I need to turn off text wrap. I know that the "noWrap" prop in tables work, but since I use divs almost exclusively I haven't been able to fix this problem...I can omit the spaces and it works fine, but I would prefer to just turn off the wrap in the object builder...

Bookmarks