I had a bit of trouble when it came to the spacing of the elements within the card so that it looked exactly like the example, any way to make it easier when dealing with situations like this? I also struggle with using media queries and understanding when to use (min-width) vs. (max-width), did I use them correctly here? If not what could I improve when using media queries? Any tips for cleaner code is also appreciated. Thank you for checking out my code!
onna4
@onna4All comments
- @jbilbrautSubmitted over 1 year ago@onna4Posted over 1 year ago
the one thing I learned is always design the smallest screen first and then the bigger (mobile first design) .. so you need to make the main design for mobile view and then use media queries for bigger screens by setting (min-width) .. you can use these breakpoints which are used by Bootstrap framework @media (min-width: 768px){ .container { width: 750px; } } @media (min-width: 992px){ .container { width: 970px; } } @media (min-width: 1200px){ .container { width: 1170px; } }
Marked as helpful0