Results 1 to 2 of 2

Thread: spacing issue with inline h2 and h3 tags within a ul

  1. #1
    Join Date
    Jul 2009

    Question spacing issue with inline h2 and h3 tags within a ul

    There's a strong chance that I didn't do this right, but I wanted to use a UL with inline LI's for navigation, because it's more semantic..

    The problem I'm having is that I can't seem to affect the margin above.

    Here's my staging site: http://impactgr.com/chris/test4

    I want to add margin above the word 'marketing', 'web' etc, so I've tried:

    ul li h2 {
    display: inline;  
    font-weight: normal;
    margin-top: 25px;
    but it doesn't add any margin above..

    Does anyone have an idea why? does it have to do with the fact that I've made the h2 inline? I thought you could add margin to inline elements...

    thanks for any help!

  2. #2
    Join Date
    Feb 2008
    Removing the inline property of the h2 does it in Firefox 4.

    Please report back how suggestions worked out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles