CyanPrime
CyanPrime

Reputation: 5193

newbie question, why is my div not floating right?

Just wondering whats wrong with my code. It's wordpress, but I'm making a custom theme. http://prime.programming-designs.com/blog/

Upvotes: 0

Views: 1741

Answers (3)

Camyz
Camyz

Reputation: 3

theres maybe 2 errors but the most obvious is the margin of your #content div (300px?), you can also try to fix your #container width with a fixed value like 960px cause 100% is a bit buggy. and then your menu needs to be inside the #container... or if you can't edit your code you can also set your #container width to less than 960px(~700px) and don't touch the code

Upvotes: 0

andrewk
andrewk

Reputation: 3871

I found the problem

take out the width:100%; from the #container.

that is causing the side bar not to float right.

good luck

enter image description here

Upvotes: 5

Clyde Lobo
Clyde Lobo

Reputation: 9174

Please remove the width:100% for the div with id as container and then check

Upvotes: 3

Related Questions