NikMac Posted October 8, 2009 Report Share Posted October 8, 2009 First off, thanks for all the help I've been getting here. You guys have really helped me get an understand for html/css (but there are still problems, argh!) There's always a large gap between my paragraphs, and underneath my tags. I've gone through the code many times and can't figure out what is causing this. My HTML is roughly: [head, meta info, etc.] [!!!Large unwanted gap here] [and here] [and here] [sidebar, footer, navigation etc. here - all working normally. This makes me think it has something to do with "content" or "main" divs.] Quote Link to comment Share on other sites More sharing options...
falkencreative Posted October 8, 2009 Report Share Posted October 8, 2009 OK... this is a margins and padding issue. p tags: At the moment these tags have both top/bottom padding (7 px) and top/bottom margin (.6 em, or about 7 or 8 px). h3 tags: This element also has a top/bottom margin of .6 em (defined in "address, h1, h2, h3, h4, h5, h6, dd, dt, li, p, pre"). However, most of the issues are actually caused by the h2 tag, which has a line-height of 2, a -5px bottom margin, and a .6em top/bottom padding. My suggestions: Start with the h2 tag. Remove the line-height and negative bottom margin. Give it a padding 0, see how it looks, then adjust as necessary. Try giving the h3 and the p tags a padding-bottom of 0, and then adjust it as necessary. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.