Home › Forums › Back End › WordPress PHP Alignment › Re: WordPress PHP Alignment
January 18, 2011 at 10:43 pm
#65358
Member
are you talking about your
div?
That was my mistake. I looked at your code wrong. It’s not that your closing tag is in the wrong spot. It’s that you didnt clear the float after closing your div. Let’s do this.
In your css write this.
.clear { clear: both; }
Then after your
get_sidebar();
in your index.php, put this in
So it would be
get_sidebar(); ?>
?>
That should fix your float issues.
Also, i noticed your content div had padding: 30px; which is causing the sidebar not to float next to the content as in your HTML document.
You could try
padding: 30px 0;