Forums

Cant get container to stretcher. (3 posts)

  1. justinede
    Member
    Posted 3 years ago #

    Hello,

    Recently, I made my website temple for wordpress. My template can be seen here (http://justinledelson.com) Here is it for wordpress (http://justinledelson.com/wordpress/).

    As you can see, my container didnt stretch to fit all my posts. I think this is because the posts are put there just by a simple php tag and the css dosnt know how long to stretch.

    here is my container css:

    #container {
    	background:url(images/background_main.jpg) no-repeat;
    	min-height:800px;
    	height:auto !important;
    	width:1000px;
    	position:relative;
    }

    `
    I am aware that if i make the min-height more, it will fit. But I want the container to stretch with the WordPress posts.

    Any Help?

  2. justinede
    Member
    Posted 3 years ago #

    bump

  3. zeniph
    Member
    Posted 3 years ago #

    some of the content within #container has the following applied to it

    position: absolute;
    float:left (or right)

    either of these attributes mean that #container DIV wont expand its height to fit what it contains.

    You could try adding a redundant DIV with clear:both applied to it just beforen you close #container. That will fix it for the floats but not the absolute positioning.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.