kvnmcwebn wrote:
just tryin to narrow the distance between my h3 element and some unordered
lists.
easy enough in ff but negative margins dont seem to budge the ul in ie.
Not looked at your CSS, but...there's really no need to get out negative
margins. Have you set the bottom margin (and
Not looked at your CSS, but...there's really no need to get out negative
margins. Have you set the bottom margin (and padding) of the h3 and the
top margin (and padding) of the ul (and possibly the li elements therein)?
i just set all of the above to 0 and it worked.
thanks patrick
I think your negative margins are getting the better of you. Because both
elements directly follow each other there shouldn't be any need to do
anything othet than set H# bottom and UL/LI top margins and padding to 0.
The change below worked for me.
.mainleft ul {
margin-top: 0px;
Negative margins will always come back to haunt you later :D
I suppose I was cutting corners using them...its just that sometimes
they seem to save a lot of hassle-probably because i dont
have a deep enough understanding of document flow and such.
thanks
kvnmcwebn