+ Reply to Thread
Results 1 to 5 of 5

Thread: Content Overflow

  1. #1
    paularm is offline x10Hosting Member paularm is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    13

    Content Overflow

    Well I seem to have the problem that when I add too much text into the main content of my website the div doesn't adjust it's height to incorporate it. Instead the text just overflows into and beyond the footer.
    Anyone know how to stop this?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Content Overflow

    You explained the behavior you get, but not the behavior you want and neglected to post a minimal test case and a live link. What do you want to happen rather than overflow? The div to fit the content? A scrollbar?

    My best guess as to what's wrong is the text is within an absolutely positioned or floated element (which aren't taken into account when calculating the height ([2]) of a parent), in which case the solution is not to absolutely position the element (and find an alternative), or auto-clear the float, or set overflow to "auto" or "scroll" so the height of the div stays the same. Without seeing sample source code (and please don't dump the entire page source), it's impossible to say what's going wrong and offer solutions.
    Last edited by misson; 12-27-2009 at 01:31 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    gptsven is offline x10 Lieutenant gptsven is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    253

    Re: Content Overflow

    for the style of the division: put either this : min-height:400px; and delete : height:400px;

  4. #4
    matthew88 is offline x10Hosting Member matthew88 is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    9

    Re: Content Overflow

    You should of posted your DIV code.

    I think the problem with ur DIV overflow is self created by forcing the height value of the DIV forcing the overflow outside of the DIV.

    A great way to handle over flow is add a CSS overflow code

    <div style="overflow: scroll;">
    You can check out the other overflow options for ur DIV at the fellowing link.
    http://www.w3schools.com/Css/pr_pos_overflow.asp

  5. #5
    paularm is offline x10Hosting Member paularm is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    13

    Re: Content Overflow

    Thanks gptsven that worked.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2009, 03:50 PM
  2. help with float:left; attribute
    By dellerdynamics in forum Programming Help
    Replies: 3
    Last Post: 12-12-2008, 02:03 PM
  3. a content code needs manipulating
    By bunglebrown in forum Programming Help
    Replies: 2
    Last Post: 08-31-2008, 03:15 PM
  4. The Best Stable PHP Content management system
    By medphoenix in forum Crossfire
    Replies: 0
    Last Post: 02-01-2008, 01:06 PM
  5. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers