nav tabs drop diagonally downwards in IE7

Discussion in 'CSS' started by darock, Jun 9, 2009.

  1. #1
    darock, Jun 9, 2009 IP
  2. markupdude

    markupdude Peon

    Messages:
    215
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    As the #navtabs is not exactly 20px as defined, IE grows out if the element is bigger than specified width/height. And the top-margin used to push the icons down becomes the culprit.

    So i guess making following changes will work good in IE, in Firefox it looks ok, but you have to save and see in IE.

    #navarea { add position:relative; }

    #navtabs { remove height; }

    #icons { remove margin , add position:absolute; left:0; bottom:0; }
     
    markupdude, Jun 10, 2009 IP
  3. darock

    darock Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you were close. i couldn't remove the height from the #navtabs because that allows for the jquery bounce effect. so i left the #navtabs div alone

    so i changed this;

    /*#navarea {
    	float: left;
    	width: 580px;
    	height:150px;
    	overflow:hidden;
    }
    	
    #icons{
    	clear: both;
    	width: 580px; height:40px;
    	position:relative;
    	display: block;
    	float: left;
    	margin: 90px 0 0 0;
    }*/
    Code (markup):
    to this;

    #navarea {
            float: left;
    	width: 580px;
    	height:150px;
    	overflow:hidden;
            [B]position: relative;[/B]
    }
    	
    #icons{
    	width: 580px; height:40px;
    	[B]position:absolute;
    	display: inline;
            bottom: -5px;
            left: 0px;[/B]
    }
    Code (markup):
     
    darock, Jun 10, 2009 IP