Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress PHP Alignment Re: WordPress PHP Alignment

#65358
dhechler
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;