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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2004
    Location
    Nashville
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text spilling out of <div>

    I've exported from excel a songlist consisting of a few hundred songs. I've taken the table formatted songlist and put it in my <div class="content"> box but when the browser window is too small the text spills out into my background looking quite nasty.

    Does anyone know a quick tip to get the text to wrap when the div is smaller?


    http://www.theprojectband.net/music.htm

    style: http://www.theprojectband.net/style.css


    Thanks

    JW

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Well, you are using a fixed-width table for the content, so when the layout (browser window) gets smaller the table doesn't change. To get it to work you have to change the widths to percentages.

    Also, you might want to jump in there and clean up some of the code (wrapping all your attributes in quotes, adding a doctype, etc...) It's one of those things that not only makes your code "correct" but it will help when you debug your code later.

    Hope this helps,

    Rich

    (hey, you're in Nashville, too! Rock on.)

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Location
    Nashville
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yea man... thanks for the help... sitting at cafe coco right now


  •  

    Posting Permissions

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