@Steven-Ang
Submitted
@sakthivel155
@Steven-Ang
Submitted
@sakthivel155
Posted
Hi @Steven-Ang,
I suggest optimizing your code by using the classList.toggle()
method instead of individually adding or removing
classes. This approach simplifies the code and enhances readability.
@DevEmmy001
Submitted
@sakthivel155
Posted
Hi @DevEmmy001,
*
directly, as it can lead to unintended consequences. Use classes instead.:root
Pseudo-Class Properly: Move the :root
selector to the top of your CSS to define your CSS variables clearly.body
: Include vital properties (like margin
, padding
, and background-color
) in the body
selector and avoid applying media queries directly to it. Instead, target specific classes or elements within your layout.Marked as helpful
@J-Jawad
Submitted
@sakthivel155
Posted
Hello @J-Jawad,
Great job on the code! A couple of suggestions:
Avoid using global styles like display: flex; align-items: center; justify-content: center; flex-direction: column;
on the body
tagโit can cause issues later on. Consider applying these styles to a more specific container.
Class names should reflect their purpose, not content. Instead of using names like karma-card or team-builder
, opt for something more descriptive of their function, like card-container or layout-flex
. Also, if you don't style these classes in CSS, it's better not to include them.
Hope this helps!
Thank you.
@alekseibodeev
Submitted
@sakthivel155
Posted
hello brother! your code is excellent keep up and move to next level to separate css file
@thaArcadeGuy
Submitted
What are you most proud of, and what would you do differently next time?
I am proud of learning how to make a div
element ignore the padding of its parent when the screen is resized to a smaller screen using CSS media queries. What I would do differently is making sure at least I can style CSS the right way without having to be mechanical.
What challenges did you encounter, and how did you overcome them?
I struggled with resizing the image to behave like in the mobile design but I was able figure it out after doing some web searching.
What specific areas of your project would you like help with?
I want to understand more about Media Queries, then BEM; I would like to know if my code follows the BEM guidelines
@sakthivel155
Posted
hello brother !
Marked as helpful
@asterisktotle
Submitted
@sakthivel155
Posted
Responsive is not good for laptop don't give % value on width because when the screen is large it response for that screen
Thinkyou, frnd I thing I give my best !
@ziedlahbib
Submitted
@sakthivel155
Posted
hai bro! you do great job but do it again slit the part step-by-step .
@olodocoder
Submitted
@sakthivel155
Posted
1)let use <main> tag after body 2)let style directly to img tag not parent element .qr-code-img { display: block; // img default inline so we change that into block it take entire hight width: 100%; border-radius: 10px; }
don't over do this: .qr-code { background-color: #2c7dfa; //don't do padding: 20px; //don't do border-radius: 15px; //overwrites } .qr-code img { width: 100%; border-radius: 10px; //overwrites }
Tip : keep follow the layout use Pesticide webstore tool to view layout with outline
Marked as helpful