Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text going outside of DIV

    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/
    Last edited by wadep; 01-11-2010 at 09:20 PM.

  • #2
    Regular Coder
    Join Date
    Jan 2006
    Posts
    568
    Thanks
    6
    Thanked 84 Times in 84 Posts
    The div inherits white-space:pre from div#body. If you need visible line breaks, change it to pre-wrap. Otherwise remove it.

  • #3
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    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:
    Code:
    .oneColFixCtr #body p {
    white-space: normal;
    }
    Last edited by itsallkizza; 01-11-2010 at 09:21 PM. Reason: changed "auto" to "normal" for cross-browserness
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com

  • #4
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you. I love you all.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •