Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I never use frameworks. I just use Meyers reset and take it from there.


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!).


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.


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).


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/




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: