![]() |
|
#1
|
||||
|
||||
CSS and handling LOOONG words.. how?If you copy and paste the following HTML, and view it with a browser, you will see that the word gets cut and does not 'break' the table...
HTML Code:
If you want to help me test this out you must ignore the spaces (vB adds to this long word) in this sample code and have it in one long line. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#2
|
||||
|
||||
|
couldn't you just add line breaks?
|
|
#3
|
|||
|
|||
|
The overflow: hidden command will not let the text wrap. But I don't think that browsers will insert a line break in the middle of a long word.
Think of a reasonably long word & then imagine making your browsers window really thin. It would be ridiculous for the word to be chopped up into it's letters. There might be some way, but I'm not aware of it Garth |
|
#4
|
||||
|
||||
|
i was hoping to avoid doing that (and somehow try to get CSS to do something about it) but inserting line-breaks seem to be the only solution... which is probably why vB seems to do the same thing.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
long words ...You've probably had this answered already, but if you use overflow:scroll you should get scrolling windows. It's not ideal but ....
If you use word-wrap: break-word you may get better results, but only in Internet Explorer. It won't work with Mozilla, Opera or Netscape etc. Maybe this will help. |
|
#6
|
||||
|
||||
|
Hello dave2002,
You're right, I've settled for overflow:scroll for most of my custom bbcode displays e.g. if you're viewing this page here : http://www.desilva.biz/forum/viewtopic460.php with Mozilla / Firebird, you will see it in action. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The