Tip: When your top and bottom margin values are same and the left and right values are also the same, but the top&bottom is different from left&right you can use margin: top-bottom left-right. Example: margin: 10px 0; Here 10px is for the top and bottom and 0 is for left and right