@Mazz100
Posted
Hello, your work looks great good job, as for your question about fixed width I had exactly the same approach on my end, I used margins and width with pixels but this was bad practice so I will write down what I learned from this solution:
HTML
- You can remove the class used for main element as it describes itself and can be used directly inside of CSS.
- I read that linking the font or any outsourced content inside HTML and you can do that by copying the google-font link provided for the font and then use it in CSS.
CSS
- You need to use max-width and define a rem number instead of fixed width.
- Remove all the margins as its also not ideal to measure distance.
- Change the grid type to column display and remove
place content
replace it withjustify-content, align-item
I see more hard coded numbers and also absolute position is very bad in this first solution so if you don't want the footer showing up just use display:none
.
Feel free to checkout the discord community it helped me a lot. Good luck :)
Marked as helpful
@kwokkw
Posted
Hi @Mazz100,
Thanks for your reply! I could not figure out the a better approach on the width and height so I use hard coded numbers. I definitely need more development on this.
Great advice on the display of my footer! Thank you!