Jump to content

Margin-top and margin-bottom not working


terryds

Recommended Posts

If you turn it into a block element its margin is passed on to its parent element. One way to fix that is to give one pixel of padding on the parent element, or to give it a border.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...