...

View Full Version : Resolved Text going outside of DIV



wadep
01-11-2010, 07:51 PM
Hello, I'm working on a website and everything is working fine except the text in the body section doesn't seem to be breaking. I have never come across this issue before and I am looking for help.
Thanks

The website can be seen here http://wadepressel.com/hoggers/

gusblake
01-11-2010, 08:17 PM
The div inherits white-space:pre from div#body. If you need visible line breaks, change it to pre-wrap. Otherwise remove it.

itsallkizza
01-11-2010, 08:18 PM
Your problem lies in the definition of .oneColFixCtr #body. In particular the white-space value. It's set to "pre" which won't place any line-breaks unless formatted in the static code. Simply change that to "normal" (or remove it altogether) to fix your problem.

If removing it breaks other parts of your site, then you can target the <p>s in particular with:


.oneColFixCtr #body p {
white-space: normal;
}

wadep
01-11-2010, 08:20 PM
Thank you. I love you all.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum