I've never had a problem aligning divs side by side, but for some reason no matter what I do, it just doesn't work. I tried several answers from stackoverflow, but they didn't work either. I'm out of ideas.
I have 2 divs. 1 div is โcontentโ - it contains all the basic information displayed in the table. The second div is the "sidebar" - it only has extra garbage images, twitter, etc.
This is my CSS.
#content { width: 580px; height:auto; } #sidebar { width: 270px; height:auto; float:right;
}
I tried to play with positioning, fields containing those 2 divs in another - wrapper - one, but it either does not work or creates another problem. It's funny that I'm rewriting my old website, and even if I copy the old attributes, it still doesn't work. Does anyone have an idea?
EVERYONE SHOULD DO! Lol
SOLUTION: Delete the #clear div, which I completely forgot about! What a muppet .: -P Now I feel stupid. :-P
source share