Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Misuse" of <main> tag #308

Closed
lat9 opened this issue Jan 28, 2024 · 0 comments
Closed

"Misuse" of <main> tag #308

lat9 opened this issue Jan 28, 2024 · 0 comments
Labels
change New feature or request fix provided A correction has been provided
Milestone

Comments

@lat9
Copy link
Owner

lat9 commented Jan 28, 2024

From the definition at w3schools:

The `<main`> tag specifies the main content of a document.

The content inside the `<main>` element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.

Since that tag currently is present in the #mainWrapper <div> and encompasses the entirety of the page (header, sideboxes, main content, footer), that makes it very difficult to have a full-wide (e.g. container-fluid) class on the header/footer elements of a page while presenting the sideboxes/main-content in a container (which has a less-than-full screen-width on larger horizontal-width screens).

FWIW, I'm currently considering doing away with the #mainWrapper selector, since its usefulness appears to be minimal, since any overall page styling can be supplied on the body instead.

@lat9 lat9 added the change New feature or request label Jan 28, 2024
@lat9 lat9 added this to the v3.7.0 milestone Jan 28, 2024
lat9 added a commit that referenced this issue Apr 29, 2024
@lat9 lat9 added the fix provided A correction has been provided label Apr 29, 2024
@lat9 lat9 closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change New feature or request fix provided A correction has been provided
Projects
None yet
Development

No branches or pull requests

1 participant