Click to See Complete Forum and Search --> : Text overflowing paragraphs.


BonRouge
08-04-2005, 04:42 AM
Hey.

I was making this gallery page (http://cheers-sendai.com/gallery.php) and I put text in paragraphs under the images. I gave the paragraphs a width, but the text seems to ignore it and overflows the box. I just want it to wrap. I'm kinda baffled... :confused:
The relevant CSS is at the end of the stylesheet (http//cheers-sendai.com/cheers8.css).
I hope someone can help me out here.

Thanks.

deep.dhyani
08-04-2005, 05:05 AM
use this property in style attribute or stylesheet

overflow: scroll;
or
overflow: hidden;

BonRouge
08-04-2005, 05:13 AM
Thanks, but I don't want the text scrolling or hidden. I want it wrapped, which is the normal behaviour of text in a paragraph - mine just isn't... playing the game.

Fang
08-04-2005, 05:21 AM
#gallery #photos li p {
width:160px;
white-space:normal;
}

BonRouge
08-04-2005, 05:34 AM
Thanks Fang,
I thought it was something like that, but I couldn't find where I'd set white space to not wrap. The problem was my spelling - I didn't put the hyphen in when I was searching the file.

erm... thanks again.

deep.dhyani
08-04-2005, 05:35 AM
use this property

white-space:nowrap;