I wanted to implement the BEM methodology, but I'm not sure if I applied it correctly?
Is there a better way or methodology in naming the variables I use in :root?
I wanted to implement the BEM methodology, but I'm not sure if I applied it correctly?
Is there a better way or methodology in naming the variables I use in :root?
Hi @Yeison2017, you're off to a great start
Some corrections as you're using BEM
<div>
with class="cardQR__content"
is a block and should have its own name, maybe "content""content__title"
and "content__info"
You can consider these resources for expanding your knowledge on BEM:
Good luck. Happy coding ๐๐
Hello and welcome to my attempt at the qr-code challenge. I used bootstrap cards to complete this challenge. I would greatly appreciate feedback on things I could improve! Thank you!
Hey @n-uzumaki, you're off to a great start
HTML:
<h5>
with an <h1>
for better accessibilityCSS:
Happy coding. Good luck ๐๐
The first project I make with API.
Hi @tetinhxuan, that's a fantastic solution
Just a small suggestion, you can set the witdh of your <main>
element as width: min(90%, 600px);
. Reference to min()
This way, it will get you rid of the media query and will provide more responsiveness to your page
Happy coding ๐๐
Hello @Leracius, nice work on your solution.
Here are some areas that you might want to improve upon
HTML:
<section>
in a bigger project, but for this challenge, you can replace the <section>
tag with <main>
tagCSS:
width
directly, you can set #container
's width:min(95%, 570px);
. This way, it will always be 95% of the parent's width, and will take 570px as the maximum width.Well done, it's a great solution ๐๐