Skip to content

0 margins in normalize looks bad #555

@justinfagnani

Description

@justinfagnani

My understanding of CSS "normalize" stylesheets is that they're supposed to unify styling across user agents, not make everything un-styled like CSS resets. I'm a bit surprised then to see this rule:

:where(:not(dialog)) {
  margin: 0;
}

This sets even headers and paragraphs to have no margin, which looks really bad and requires some additional styles to add them back.

Is there a reason all margins are set to 0? Could they instead be set something close to what the user agents have by default, ie 1em for <p> tags, etc.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions