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've built a couple pages with PicoCSS now, and one thing that is really nice to have is a .hero class for the front page (an element that fills the size of the screen). I've simplified the class to only a few rules that make sense, and you can see one implementation here: https://communitycentric.org
The implementation for this website expects a <main> tag inside the .hero element to fill the size, and allows the <header> and <footer> (or any other elements) to run across the top and bottom of the screen. I would be happy to refine the CSS rules into a PR, but I'm curious if anyone has thoughts on structure expectations or other use cases for this class before I do.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've built a couple pages with PicoCSS now, and one thing that is really nice to have is a
.hero
class for the front page (an element that fills the size of the screen). I've simplified the class to only a few rules that make sense, and you can see one implementation here: https://communitycentric.orgThe implementation for this website expects a
<main>
tag inside the.hero
element to fill the size, and allows the<header>
and<footer>
(or any other elements) to run across the top and bottom of the screen. I would be happy to refine the CSS rules into a PR, but I'm curious if anyone has thoughts on structure expectations or other use cases for this class before I do.Example:
* I don't actually use the <center> tag here, I wish it was still supported
Beta Was this translation helpful? Give feedback.
All reactions