FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

How do i do this (Solved)

 


avk
Hello!!

I have a problem and the problem is

Got a block of 150 px with with lots of text.

Code:

<div id="block"> LOTS OF TEXT OUT HERE</div>


How can i wrap the text in the div of the same width.
What CSS should i write in the div so that the width remains constant and the text goes in the next line if it exceeds the width of the div.

Hope the question is understood.


Last edited by avk on Wed May 31, 2006 8:48 am; edited 1 time in total
DoctorBeaver
If you've set the width correctly the text will wrap automatically. Post your code & CSS so we can have a look.
LukeakaDanish
Should be pretty easy if i understand you correctly...this works for me:

Code:

#block {
       width: 150px;
}


That works!...dunno if i misunderstood your quesiton...it seems almost too obious... Confused
avk
Oh!!

Thankyou. got my answer.
Animal
Solved, so -close-

Please PM any mod if you want this topic re-opened.
Related topics

Can one reset the site? (Solved)
A great website poll....
solved
[Solved] [Java] KeyListener Not Working In Internet Explorer
Untaring files in DirectAdmin [SOLVED]

New Domain -Solved-
Flash not working on Firefox
Math Problem. 30 frih. (Solved!)
Tabless layout - footer problems - [solved]
frihost serv2 and joomla = problem :( SOLVED

"Document not found" in iframe
PICASA LABELS/ALBUMS! [SOLVED]
[solved]show / hide table row. Something is wrong
Pro Tools Website
PHP + GD coder needed - Dynamic Sig Help {SOLVED}

SOLVED::PHP upload_max_filesize
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.