• Hello,

    Recently, I made my website temple for wordpress. My template can be seen here (https://justinledelson.com) Here is it for wordpress (https://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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter justinede

    (@justinede)

    bump

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cant get container to stretcher.’ is closed to new replies.