Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    floating problems in IE

    I am trying to float and image for a webpage - it works in FireFox but not in IE - any ideas what I am doing wrong? Thanks!

    }
    .photo_left {
    color:#660033;
    background: #BFCBB1;
    padding: 1px;
    border-top: 2px double #6F006F;
    border-right: 2px double #6F006F;
    border-bottom: 2px double #330033;
    border-left: 2px double #330033;
    text-transform: uppercase;
    float: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 100;
    margin-top: 2px;
    margin-right: 4px;
    margin-bottom: 2px;
    margin-left: 0px;
    clear: left;
    }



  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,668
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello DESIGN,
    Normally to float an element, you need to specify a width. That width could come from inline styling in the markup, which you don't show, but it's definitely missing in the CSS you quoted.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    it works in FireFox but not in IE - any ideas what I am doing wrong? Thanks!
    Can we have a link to your page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •