Reputation: 97
I'm trying to make a menu bar that is vertically on the right side of the screen. The menubar should touch the horizontal main navigation bar on the top, but i can't set the top margin of the vertical bar to zero.
Here: https://www.dropbox.com/s/azz5diwqzfchued/Schermafdruk%202015-09-08%2022.22.09.png?dl=0
is a screenshot of how chrome inspect element shows the problem, this might make things a bit clearer.
Thanks in advance!
Upvotes: 0
Views: 76
Reputation: 124
According to the element inspector your margin-top style got a syntax problem. From the looks of it I'd say you used a double ':' (colon) character. Try removing the double ':' character and try again.
If this still doesn't work, maybe another style is overriding your new one so you could try:
margin-top: 0 !important;
This will make sure this style will always have the highest priority.
Upvotes: 2