CSS/HTML HELP!!!!!!!!! ASAP!!!!!!!!!?

Helga Bon Elmer

New member
I know there's a way to restrict how wide text is in html/css but is there a way to restrict how tall text is? like on a paragraph, instead of the text continuing to the next line, have to stop at a certain height?
 
as far as i know, you might be able to use the overflow property:

CSS Code:

p {
overflow: scroll;
}

otherwise, you cant actually stop text from being tall. You can also edit the line-height to make lines tighter together:

p{
line-height:9px;
}

hope this helps!

arus.geo :

the height property doesnt actually stop the text going beyond this though, text may continue to render below this div.
 
can you provide an example of what you are tyring to achieve?

you can limit the height of an entire paragraph of text by using div

#pheight { height: 200px;}

<div id=pheight><p>the quick brown fox jumps over the lazy dog the quick brown fox jumps over the lazy dog the quick brown fox jumps over the lazy dog the quick brown fox jumps over the lazy dog</p> </div>
 
Back
Top