SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: IE7 Showing Up Different than IE6 and FF

  1. #1
    SitePoint Addict fesh's Avatar
    Join Date
    Jan 2005
    Location
    Jackson, New Jersey
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation IE7 Showing Up Different than IE6 and FF

    Hey everyone -

    My page is being such a jerk. It looks like I want it to in FF and IE (hacks included), but I can't seem to get IE7 to behave properly...not even after trying 5 different hacks! Here's the page:

    http://test.mattfehskens.com/DDS/test.html

    and the CSS:

    http://test.mattfehskens.com/DDS/css/dds_new.css

    The part of the code that I'm trying to modify is at line 87:

    Code:
    div#container div#lcol div#bottom div#speakers ul#left_stack{
    margin-top: 30px !important;
    margin-left: 30px !important;
    margin-top: 15px;
    margin-left: 15px;
    }
    All I need to do is have IE7 ignore the "margin-left: 15px;" and it should work, but after trying the * hack, _ hack, LitePacific, the Lang filter, and some other hacks...I got nothing. HELP!
    Fesh
    imagine what it's going to be like

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't mention IE6, but is it the Double-float-margin bug you are battling?

    Code:
    div#container div#lcol div#bottom div#speakers ul#left_stack{
    margin-top: 30px !important;
    margin-left: 30px !important;
    margin-top: 15px;
    margin-left: 15px;
    display: inline; /* IE6  bugfix */
    }
    Happy ADD/ADHD with Asperger's

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,753
    Mentioned
    99 Post(s)
    Tagged
    3 Thread(s)
    All I need to do is have IE7 ignore the "margin-left: 15px;"
    As Erik has already stated the problem in IE6 is the double margin bug that has caused you to use an !important hack which doesn't work in IE7. The display:inline fixes ie6 and then there is no need for those !important statements either.

    If you ever need to target ie6 and not ie7 then simply use the star selector hack in a rule of its own.

    Code:
    * html elementname{height:1%}/*only ie6 and under will get this */

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
  •