News for hackers. Stuff that matters.
Re:Learn CSS Positioning by ludwig on Monday February 15, 2010 @01:38PM (#1127180)
You know that's on purpose, right? Different browsers have different defaults. Therefore, the easiest way to ensure consistency is to start from a clean slate and be explicit.
Re:Learn CSS Positioning by eam on Monday February 15, 2010 @03:07PM (#1127348)
I never use frameworks. I just use Meyers reset and take it from there.
Re:Learn CSS Positioning by nbrochu on Monday February 15, 2010 @03:14PM (#1127368)
Exactly!

It's not like it is really that complicated to make it work from there... If you think it is, learn CSS properly (i.e. stop cutting corners!).

Re:Learn CSS Positioning by CoryMathews on Monday February 15, 2010 @02:47PM (#1127314)
Yes, thats the problem. When I add an h1 tag, I expect some defaults such as display:block, margins and padding. When I add a p tag it should NOT work the same as just adding br tags. I should see the default spacing between paragraphs.
Re:Learn CSS Positioning by RyanMcGreal on Monday February 15, 2010 @03:43PM (#1127430)
I'm sold on CSS resets. When I add an h1 tag, I expect it to be styled exactly the way my CSS styles it, and nothing else (e.g. a default 1em bottom margin in some browsers but not others).
Re:Learn CSS Positioning by rimantas on Monday February 15, 2010 @04:52PM (#1127609)
No, the easiest way is just to be explicit. On the other hand, trying to chase pixel perfect look in different web browsers is just a waste of time these days, so having slight differences in whitespace is OK, imho.

http://dowebsitesneedtolookexactlythesameineverybrowser.com/