GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Oct-2002, 10:03
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Unhappy

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:
<html> <head> <title>Really LONG word</title> <style type="text/css"> <!-- body { background-color:black } table { background-color:white } table.tblFixed640 { width:640px; table-layout:fixed } td.tdFixed640 { width:640px; padding:10px; overflow:hidden } --> </style> </head> <body> <table class="tblFixed640" align="center"> <tr> <td class="tdFixed640"> Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaargh! </td> </tr> </table> </body> </html>
My question is, how do I get this 'long' word wrapped instead of cut?

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.
  #2  
Old 23-Oct-2002, 13:01
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,060
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
couldn't you just add line breaks?
  #3  
Old 24-Oct-2002, 04:04
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
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  
Old 24-Oct-2002, 04:15
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
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.
  #5  
Old 08-Aug-2003, 10:43
dave2002 dave2002 is offline
New Member
 
Join Date: Aug 2003
Posts: 1
dave2002 is an unknown quantity at this point

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  
Old 08-Aug-2003, 10:51
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
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.
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:42.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.