IE 6 dont apply width in background url

Discussion in 'HTML & Website Design' started by dr_pompeii, Jan 31, 2007.

  1. #1
    hello guys

    i am using a menu that use this part of the all code

    
    
    #divNav { 
    	background: transparent url(bk-nav.jpg) no-repeat top left;
    	 margin: 0; 
    	 padding: 0; /* top botom left right*/ 
    	 height: 80px;
    	 width: 760px; /**/ 
    	 border: 1px green solid; /*only for test*/ 
     }
    
    Code (markup):
    well in FF and Opera works fine if i change as i wish the width value
    but in IE no work and always i see the default width of the photo (has a size of 800px), how i can resolve this???

    BTW i am using

    
    <!--[if IE 6]>
    <link rel="stylesheet" href="micssmenuIE.css" type="text/css">
    <![endif]-->
    
    Code (markup):
    to avoid problems

    thanks for advanced
     
    dr_pompeii, Jan 31, 2007 IP
  2. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #2
    This lines are igneored by browser... it is just comment.
     
    SEOdir.net, Feb 1, 2007 IP
  3. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you have a style sheet called "micssmenuIE.css" and if you do, does it have a style in it for #divNav? If so, you'll need to make adjustments there as well, to account for IE, since you're using a conditional statement to call this extra style sheet into your site just for IE.

    All other browsers will ignore the contents of that extra style sheet. But IE may use information within it to override your style changes made in your global .css document.
     
    the_pm, Feb 1, 2007 IP