style works in Firefox but not IE

Discussion in 'HTML & Website Design' started by itssangy, Sep 1, 2007.

  1. #1
    the site i'm working on is: http://ipthing.com

    When i view it with firefox, I can see the border & background around the <h1> tags, but when viewed with IE6, no background or border.

    This is what I have for the <h1> in the css file:

    
    h1 { 
    	margin: 10px 0 10px 0;
    	padding: 4px;
    	font-size: 100%; 
    	color: #555555;
    	border: 1px solid #cccccc;
    	background: #fafafa;
    }
    
    h1 span {
    	color: #ff0000;
    }
    
    Code (markup):
    Any help would be appreciated.

    Thanks
     
    itssangy, Sep 1, 2007 IP
  2. itssangy

    itssangy Peon

    Messages:
    135
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I found the answer, it's a bug in ie6.

    adding:

    position:relative;

    to h1 fixed the problem.
     
    itssangy, Sep 1, 2007 IP
  3. ikhan

    ikhan Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Having same sorta prob!
    Thanks itssangy....
     
    ikhan, Sep 1, 2007 IP