Forums

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

Home Forums CSS [Solved] Appying background to floating divs Re: [Solved] Appying background to floating divs

#76636
cramdesign
Member

What is the link to your working file? As for the y on the margin thing. Margin is like this:

Code:
margin: top right bottom left;

To remember this order, it is TRBL pronounced "trouble" which is what you will get if you don’t remember this. You can shorten this even more like so:

Code:
margin: (top and bottom) (left and right); or in our case margin: 0 auto;

This basically mean that top and bottom (y axis) is 0. If you want to bump it down a bit, say 50 pixels:

Code:
margin: 50px auto 0;

This would put 50 pixels at the top, auto on left and right for centering, and 0 at the bottom. Got it? (Ok, I know my examples are not code but I wanted to highlight them like they were.)