Home › Forums › CSS › Cannnot make top margin work on this div › Re: Cannnot make top margin work on this div
November 14, 2012 at 10:08 am
#114301
Participant
Use padding instead. Or you can set margin-bottom on .sidebar and .content.
That way the height-est element will push down your container.
Both .sidebar and .content are floating elements and somehow you cant use margin-top against them. Notice if you set float:none on them the margin-top will work.