SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Neutralizing space around the h3

    How can one neutralize the space around one of the heading tags?

    I am looking for something like this:

    Small Heading Title In An h3
    Some text in a pair of paragraph tags that should be directly below similar to a br tag between the h3 and the p

    Code:
    <h3>Small heading Title</h3>
    <p>This is the paragraph text</p>
    I am trying the following styles with no luck:

    Code:
    #main h3 {font-family: Arial,Verdana,  sans-serif;
    	color: #003366;
    	font-size: 13px;
    	font-weight: bold;
    	padding:0;
    	margin:0;
    }
    
    
    #main p {
    	font-family: Arial,Verdana,  sans-serif;
    	color: black;
    	font-size: 13px;
    	font-weight: normal;
    	padding-top: 0;
    	marging-top: 0;
    }
    Any help would be appreciated.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Code:
    h3
    {
        padding: 0;
        margin: 0;
    }

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    I am trying the following styles with no luck:


    Code:
    #main h3 {font-family: Arial,Verdana, sans-serif; color: #003366; font-size: 13px; font-weight: bold; padding:0; margin:0;}#main p { font-family: Arial,Verdana, sans-serif; color: black; font-size: 13px; font-weight: normal; padding-top: 0; marging-top: 0;}



    How do you spell margin ?

    Code:
    #main p {
     font-family: Arial,Verdana,  sans-serif;
     color: black;
     font-size: 13px;
     font-weight: normal;
     padding-top: 0;
     marging-top: 0;
    }
    margin - not marging

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the response - worked like a charm! I was wondering why that did not work on the code I had submitted then realized I had misspelt margin


Bookmarks

Posting Permissions

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