You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an experimental port of a webapp, and I'm finding that out of the box, sections and articles are cramped. As semantic elements, should these have a bit more styling OOB?
The text was updated successfully, but these errors were encountered:
Sections and articles usually start with headings, which have top margins. Some HTML generating tools (e.g. Asciidoc, Pandoc in some configurations) automatically insert section tags based on headings. This means adding margin to sections by default would lead to those documents being unevenly spaced.
Section and article are elements with extremely broad usage, and no behavior that would guide their appearance. My experimentation in the early stages of missing.css development showed any styling we add would break some valid document.
If you want, you can use the margin-block class to add margin in the block axis (the vertical axis, in languages written horizontally).
Closing this issue since I don't currently plan to implement this, but I am still open to discussion if you (or anyone else) have ideas on how we could style sections and articles without breaking valid documents. Our discord channel (https://htmx.org/discord#missing-css) is currently the most convenient medium for discussion.
I am working on an experimental port of a webapp, and I'm finding that out of the box, sections and articles are cramped. As semantic elements, should these have a bit more styling OOB?
The text was updated successfully, but these errors were encountered: