What are you most proud of, and what would you do differently next time?
The grid system was a bit complicated to get right for the desktop view... Managed it, but feels like it could probably be done in a more efficient way.
But it's cool to be able to do so much stuff with it.
What challenges did you encounter, and how did you overcome them?
The grid system, figuring out how to merge two cells together.
What specific areas of your project would you like help with?
What are you most proud of, and what would you do differently next time?
I am most proud of learning about resposive design. I was able to perform this challenge
and complete it using what I learned about working with mobile design and media queries.
What challenges did you encounter, and how did you overcome them?
The challenges I face was getting the cards to line up correctly. I was able to overcome them by setting the template rows and columns using fractional units.
What specific areas of your project would you like help with?
I would like to know what I can improve in this design and if I need to make any changes in my media queries. I went back and forth between media queries to get it right but I would love the criticism and welcome any feedback on responsive design. Thank you
Try to use HTML semantic elements such as <main> instead of div.container
body's width should be 100% by default
With the use of CSS variables your code looks cleaner (color variables)
Considering js: You can put line 7-9 and 15-17 in a function and can call this function. But notice you can do this project without any js because of use of <details><summary></summary><p></p></details>tag. This is how I solved this project.
Maybe you have also some suggestions to my solution of this challenge in my profile. Thanks and happy coding!
If you saw this from the tags i added, i am sorry. I can't add simple tags. But i am always open to read some feedback. I made it responsive, but i used media queries and some CSS Flexbox. Hope you like it.
This is my first challenge here based on HTML + CSS only. I would really appreciate your feedback on this code and possible improvements. Thanks in advance.
Remove body { margin: 25px; } and replace it with body { min-height: 100vh; }
It's good practice to use a normalize.css file to reset browser's default behaviour. For example install with npm install normalize.css in Terminal and than link normalize.css to your *index.html file
Remove main { margin-top: 75px; }
Instead of using div's try to use HTML semantic elements such as main, element, article, section
<h2>should be <h1>because it's the only heading.
"Anual Plan" should be a <p>
Remove marginfrom div.paymentand set gap: 20pxto div.plan
"$59.99/year" should be in a `<p>``
Remove div.space and give the `div.payment { margin: 0 auto 0 0; }
Remove margin from div.orderand div.plan
"Proceed to payment" is a <button>
"Cancel" is a <button>
Remove div containers from "Proceed to payment" and "Cancel" and replace it wiht button and style it with css.
Happy Coding
I'd like to understand HTML structure a bit better so I don't get lost in terms of "foundation" when building a website's structure so that I won't mix all the div's.
Also, can you have a look at my @media queries code? At some point, I've given my margins and paddings a value of 100px, is this right?
Other than that, I'll love any feedback that can help my improvement. Cheers!
Hi,
in general it's good practice to write the css styles in a separate *.css file and link to this file from the *.html file:
<link href="styles.css" rel="stylesheet">
Use rem unit instead of px unit for font-size (1rem is 16px at defaul :)
Moreover, I would recommend learning the basics of CSS flexbox and grid. As a result you can make better layouts even easier without display: block and lost of margin and padding properties.
Happy coding!
Hi, well done! As I think, it's not good practice to override default font-size (16px) because it's hard for other developers working on this code, even if it's easier to calculate with rem: