SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What does *margin-left:-5px do?

    I have inherited a CSS file which I need to make some simple additions to but not mess up the existing.

    I have found this:

    .box {
    *margin-left:-5px;
    }

    What is the '*' ?

    Also, it breaks some really old browsers (mainly mobile) which won't render at all. Taking it out and they work.

    Also, how should I get around this as I'm guessing it's there for a reason. Can I keep it in and stop it breaking old mobiles?

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,197
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    That is an IE specific CSS hack which as a developer I avoid at all costs because of how ugly it looks when other CSS properties, if you remove it does the site fall apart in IE as you would get a much cleaner result if you used something like conditional comments by Paul Irish or an IE specific stylesheet.


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
  •