@SzymonRojek
Posted
Hi Andy,
Welcome here, well done :D
I have checked your project, mainly HTML structure and RWD by the inspector in my browser, a few tips below:
- instead of section class="card-container" you can use the main tag just to indicate the main content on a page;
- don't have to create that kind of classes like padding-small, padding-large;
- generally I'd recommend learning about BEM naming convention and how to create readable and descriptive classes => in the future you will get lots of gratifications from it;
- if you will use the grid you don't need this div class="card-subscription";
- "per month" in the middle of the price: don't have to use two spans inside the p, one will be enough. In my project I have used two paragraphs but now I think it will be better to use just a one span inside of the paragraph;
- well done with the link (lots of people used a button but in my opinion the link has got a better reason to be here), anyway check this article from the blog CSS-tricks:A Complete Guide to Links and Buttons;
- third box: instead of many p it will be better to use ul > li;
- reset the CSS styles: * { margin: 0; padding: 0; box-seizing: border-box; };
- you gave explicit width on mobile size: that's not a good practice especially that you want to use the flexbox or grid. It is essential to understand well the height and width vs min-height/max-height & min-width/max-width. You shouldn’t need to give items height unless they have a background or absolutely-positioned or floated elements within them that would not normally be accounted for in the height of an element. Experienced developers use min-height and min/max-width more than anything else. It allows elements to grow and shrink;
- check a project i your browser on different devices by using the inspector => this is a good practice to see the project at the end, now there is a problem with a margin an generally project doesn't look well on mobiles.
That's from me.
Ps. Please, don't forget to upvote any comments on here that you find helpful.
Greetings :D
@racurley
Posted
@SzymonRojek Thanks for taking the time to provide the feedback. Super helpful. I think I applied everything suggested other than BEM naming (need to figure it out). And, I couldn't get the pricing line to work with a single span so I went back to my two. But, I did get the proper vertical alignment. Definitely seems much cleaner than before.