Discussion Board

ask questions, discuss topics, solve problems

This is a public Discussion Area  publicRSS

Thread

    • Help needed!
      Thread posted Jan 07 by mustachemayhem
      398 Views, 3 Comments
      Title:
      Help needed!
      Content:

      Hey guys, I was wondering if anyone out there could possibly help me out with this issue I'm having. I'm in the middle of re-designing my website and for some odd reason, I'm getting an inexplicable seperation between divs displaying in Firefox and Safari (but not IE6 or IE7). Here's the page in question - http://www.mustachemayhem.com/newStache2.html

      If anyone has any idea what on earth could be causing this seperation to appear, I'd greatly appreciate some advice on getting rid of the black lines that are showing up between divs.

      Thanks and I look forward to meeting everyone on the 15th!

      -Josh 

    Comments

    • Hmm, mystery margins. Sometimes, it's not easy to pin down exactly which element has extra spacing. To ensure broswer consistency, try a CSS reset:

      * { margin:0; padding:0;} 
      

      This will remove the extra margins, but it will also reset the defaults for every element on the entire page. Personally, I like this approach, because I have a finite amount of control over everything and it's usually cross-browser compatible.

      There are other alternatives to a browser reset, notably Eric Meyer's reset:
      http://meyerweb.com/eric/tools/css/reset/

      and YUI Reset CSS:
      http://developer.yahoo.com/yui/reset/

      Both are a little less disruptive than the star selector, but I like the star for its simplicity. I'm sure our other developers have opinions on this :)

    • Well, the star method worked to get rid of the unexplainable margins . . . but now I have no spacing between paragraphs . . . looks like I have some more playing around to do. Perhaps I'll check out the links you provided to see what they have to say on the matter. 

      Thanks for the help, Greg!

    • Thanks to Greg's advice, this issue has been resolved. Thanks again.