@KapteynUniverse
Posted
Hey @Bunchydo,
What i try to do recently is look for both mobile and desktop design, so i can decide how to approach like how to start and what will change then start with mobile. When you write the HTML code, most of the times it is mobile layout just without styles
Use a modern css reset for every project. It will make your life a little bit easier.
Headings (h1-h6) are not for the sizes. <h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on. There is a visual for better understanding here, under nesting
Wrap the content in a main landmark If will be times to use other landmarks too.
Looks like you know flexbox, but used absolute positioning for centering. For future challenges you can use this or grid for centering.
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
Also instead of pixels use em/rem units for better responsibility
Kevin Powell made a video about this challenge. I recommend you to check it. He also have a couple for em/rem units.
Marked as helpful
@Bunchydo
Posted
Hi KapteynUniverse,
Thank you very much for this reply. It clears up a lot of things.👍