FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
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.
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.