SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist silversurfer5150's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Negative Margins

    Hey guys,

    My Css code is working great lately which is a vast improvement on what it used to be but there is something that bothers me - Negative margins! I recently designed a three column layout and certain columns were longer than others, newspaper style. Anyway, in order to stop some of them knocking each other onto the next line, I used neagtive margin-top and margin-bottom properties. The result was a great layout which only had minor backward compatibility issues with IE6 and 7. Should I feel guilt about using this technique for layout or is it a necessary evil?

    thanks

    Will

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,198
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    I suspect there's a better way to go, but we could see the site to be able to judge properly. I prefer to avoid things like this, as they are prone to problems—at least in IE, if nothing else.


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
  •