Click here to see what I mean.. What could prevent these two from sitting directly atop each other like that. At the moment on my site I have to use margin-bottom:-22px;
to get the effect.
And of course, it doesn't work in IE...
Thanks :)
Click here to see what I mean.. What could prevent these two from sitting directly atop each other like that. At the moment on my site I have to use margin-bottom:-22px;
to get the effect.
And of course, it doesn't work in IE...
Thanks :)
Using a positive margin value should result in them being spaced further apart
What do you mean? If you add margin-top: 2px
to the bottom div, it will appear 2px further down, i.e. not touching. Is there a problem with this...?
I'm not sure to understand your question correctly? Why don't you put a positive margin-top at your second div ?
Some inherited margin, perhaps? It's very hard to know without the context.
A useful tool to identify problems of this type is what is known in most browsers as "developer tools" (Firebug in Firefox). Right click on any element and choose Inspect element
in order to easily view the box model of any element, and from where it has acquired those styles.
Here's some links on how to do this with Firebug: http://getfirebug.com/layout and http://getfirebug.com/css
Maybe there is a margin defined somewhere, either in the internal browser styles or elsewhere in your stylesheet? Try setting the margin to 0 on both elements.