help with my CSS, wrong in Chrome

Discussion in 'CSS' started by moonswamp, Aug 28, 2010.

  1. #1
    
    .header{ width:980px; height:71px; margin: 0px auto;}
    .logo{padding-top: 10px; float:left}
    .tel{padding-top:15px; float:right}
    
    Code (markup):
    then

    
    <div class="header">
       <div class="logo"><a href="#"><img src="images/logo.gif" /></a></div>
       <div class="tel"><img src="images/tel.gif"></div>
    </div>
    
    Code (markup):
    this works OK in IE7 and firefox, the logo and the tel image show OK in the 980px,

    but don't work in Chrome, the width showed as 100% and the logo float to the absolutly left and the tel floated to the absoluty right!!!

    sorry my poor English in the web design area~~~ hope you can understand me, so I make a small picture to explain it, here is the attachment, 3.jpg~~~

    3.jpg
     
    Last edited: Aug 28, 2010
    moonswamp, Aug 28, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    My latest chrome shows no difference. Please make sure use a doctype.
     
    radiant_luv, Aug 28, 2010 IP
  3. moonswamp

    moonswamp Well-Known Member

    Messages:
    325
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #3
    I'v added doctype on the very top~~~and my chrome version is 5.0375, the latest version~~~~
     
    moonswamp, Aug 28, 2010 IP
  4. moonswamp

    moonswamp Well-Known Member

    Messages:
    325
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #4
    OK, solved, cos the css file problem,!
     
    moonswamp, Aug 28, 2010 IP