View Single Post
  #4 (permalink)  
Old Sep 11th, 2007, 22:37
MikeHopley MikeHopley is offline
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Positioning between <h3>

Quote:
Originally Posted by konnor5092 View Post
Even regarding vertical positioning when I have set the margin and padding to 0?
Maybe.

The line-height value, for example, could also affect the vertical positioning. Unless this is zero, the difference in browser font-sizes will cause a difference in line-height, which will have much the same effect as adding different padding to the top and bottom. Try specifying a font-size, or specifying line-height: 0;, or both.

You might also have a conflict of styles, although it's unlikely. You can check this by adding !important after your zero-margin and padding declarations:

Code: Select all
{
margin: 0 !important;
padding: 0 !important;
}
These will override all conflicting rules, provided you have not used !important anywhere else. It's a marvellous CSS debugging tool for when you have complex stylesheets, or a cascade over multiple stylesheets. Be sure to remove it after testing.

Last edited by MikeHopley; Sep 11th, 2007 at 22:40.
Reply With Quote