I need to move the navigation bar up. The problem is that the content after doesn’t follow it. It worked with margin-top. However it doesn’t work in Firefox/IE that way, and I read I should use top attribute.
@Paulie_D thanks! That example is very clear. I had forgotten that relative positioning “saved” the space, whereas margin “moved” it.
Negative margin had worked for me, but only in Chrome. I don’t know why it doesn’t work well inside Firefox or IE.
@wolfcry911 thanks! I’ve solved it by moving up the #main-content div by the same amount. It is not very pretty, but now is cross-browser compatible.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘CSS’ is closed to new topics and replies.