Results 1 to 3 of 3

Thread: *slightly* stupid CSS question for IE6

  1. #1
    Join Date
    Aug 2009
    Location
    utf-8
    Posts
    205
    Thanks
    4
    Thanked 7 Times in 7 Posts

    Question *slightly* stupid CSS question for IE6

    Anyone know how to take this code here
    Code:
    <style>
    img.i1 {
    margin: 0 auto;
    display: block;
    border: 0;
    }
    </style>
    
    <img class="i1" src="media/images/notepad.png" width="55px" height="55px" alt="">
    and make it work for IE 6?

    The code works for IE 7. But when I view my site in IE6, the images become weird.

    This is not a homework asignment and my site cannot be viewed. Thanks

  2. #2
    Join Date
    Oct 2009
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default

    try this:

    Code:
    <style>
      img.i1 {
      margin: 0 auto;
      display: block;
      border: none;
    }
    </style>
    
    <img class="i1" src="media/images/notepad.png" width="55" height="55" alt="">

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    http://24ways.org/2007/supersleight-...ent-png-in-ie6

    or you could also try
    Code:
    <img class="i1" src="media/images/notepad.png" style="width:55px; height:55px;" alt="">
    but I think it is a problem with the image formatting and ie6.
    Corrections to my coding/thoughts welcome.

Bookmarks

Posting Permissions

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