The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

If you could post your fullcode then it'll be easier to see what the problem is. Removing the padding and margin should work as you've done so presumably there's something else that has padding or margin's after the h2 that you haven't considered?

I'd tend to use

Code:

* {
padding: 0;
margin: 0;
}

at the beginning of my CSS to ensure that all default padding and margin's are removed and then apply it where I want it

If that doesn't help though then please post your fullcode and we'll take a look.

It'll have probably been padding or margin's on the top of elements that followed on from the h2.

Remember that using the method above removes padding and margin from everything so for something's you'll need to reapply it. For example, lists will need them reapplying and it can cause problems with formfield formatting but as long as you're aware of potential problems then it's the easiest method.