SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Automatically adjust/resize DIV to fit content

    Hi,

    I am trying to get the DIV to automatically resize to fit extra content, so that I don't need to enter a fixed height on each page when there is extra text.

    As you can see, the text currently runs over:
    http://radicalmen.com/NewSite/about-radical-men.html

    Have tried various tips by Googling, but none have worked.

    Thanks in advance!

  2. #2
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can basically add overflow: hidden to your content div and remove height: auto and min-heigh: 514px;

  3. #3
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks - worked - you rock!

  4. #4
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your welcome But I don't rock. I just spread the word from some very wise man and woman


Bookmarks

Posting Permissions

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