[HTML] toooo wide .. what to do ?

Status
Not open for further replies.

alaa_ecv_tc

In Runtime
Messages
147
Location
Syria
Hi ,
Is there any way to make sure that page is not too wide ?
For example : If someone posted 100 letters without spaces it will be too wide post .
I tried every thing but cutting the word , this I will say why later in this post ..
I'm using table and div tags and it is OK to use other tags .
I don't want to cut the post off screen .. I'd rather have a scroll bar ..

And for cutting words .. I'm using UTF-8 in programming so an Arabic letter takes two letters and cutting by wordwrap() will destroy the letter in half and that makes these : � � << this was one Arabic letter ..

I can not use any encoding but UTF-8 , unless it is temporarily or temporally I don't know witch word is right , But you got me :p


Any ideas ?
 
After some search in here I found this :
Code:
overflow:scroll;
in the CSS for the box above !
but it didn't work with "width:100%;" !!! only for "width:400px;" .. :(

like this :
Code:
<pre style="width:120px; overflow:scroll; " >LONG TEXT NO SPACES AND NO NEW LINES</pre>

I think I must search deeper in your CSS :p
 
Status
Not open for further replies.
Back
Top Bottom