Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: CSS Float Tag

  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Thanked 0 Times in 0 Posts

    Question CSS Float Tag

    Image tags with style="float: right;" or style="float: left;" not displaying in IE 6.

    Do I just not get it?

    I have of course multiple images for the makeup of my website, but only 3 on the page are actually images displayed as images and two of them are floating in the welcome message. One to the left, the other to the right. The page displays perfectly in all browsers (that I have checked so far), EXCEPT IE 6. What gives?

    This is the code that has worked successfully in all other browsers and other versions of IE.

    <img src="img/tim1a.jpg" width="200" height="278" style="float: right; padding-left: 20px; padding-right: 0px; padding-bottom: 0px; padding-top: 10px;" />

    If anyone could tell me if there is a way to get it to show up in IE 6 that would be great. I have tried the following, but maybe not in the right combination.

    clear: ; (left, right, both)
    display: ; (block, inline, none)
    visibility: visible;


    I am still researching, but if someone beats me to figuring it out, that would be awesome. I haven't found the exact question anywhere online, so I'm guessing that it is unique to my page coding and wonder if I don't have something else messing it up. I have checked and re-checked, but no other tags or styles in the CSS sheet or .html page itself have a float style....I will probably just have to go through line by line until I find it, huh?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    Add position:relative; to the css for the images.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


    Posting Permissions

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