WEB CSS guys v. I need help Pt. II

Discussion in 'OT Technology' started by Necromancer, Mar 9, 2008.

  1. Necromancer

    Necromancer Guest

    Works in firefox, Opera, and Safari but not in IE.

    http://btbproperties.com/contact3.php

    :mad:

    CSS code-

    Code:
    .oneColElsCtr #container {
    
        width: 937px;
    
        height: 250px;
    
        background: #FFFFFF;
    
        display: block;
    
        margin-right: auto;
    
        margin-left: auto;
    
        position: relative;
    
        
    
    }
    
    .oneColElsCtr #container img {
    
        display: none;
    
        position: absolute;
    
        top: 10px; 
    
        left: 10px;
    
        
    If I remove the position: relative, it'll work fine but then the container img gets fuck all the way to left and the only way that will work properly is in absolute position. There's a js script in there.

    I copied the idea and script from OTers Style's website http://www.lightblu.com/ but his works in IE. :hs:
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,922
    Likes Received:
    10
    Location:
    Los Angeles
    I'd rework the entire layout using floats. You shouldn't ever have to position anything absolutely or relatively unless needed. Your layout can be accomplished using strictly floats.
     
  3. fishbulb

    fishbulb Active Member

    Joined:
    Oct 29, 2001
    Messages:
    6,848
    Likes Received:
    4
    Location:
    md
    ++
     

Share This Page