@Solomonking007
Posted
First and foremost, create external file for your CSS and link it the the head section of your html using the <link tag>
Example: if you save your external css file as “style.css” then in the head section of your HTML, link your external style sheet with the below tag
<link rel=“styleshert” href =“style.css”> Then you have successfully linked your css file to your html. This makes it easier to maintain your webpage as it scales larger. Bugs can be easily detected and fixed too.Now back to you question about media queries.. Media queries are used to change the css property or layout of a page depending on the screen size. You have to learn the various breakpoints for all devices.
The best way to learn is by watching tutorial videos on YouTube and make notes. (I strongly recommend Kevin Powell YouTube channel) and or register for a css media query course on Coursera.
Dedicate a few days to learn media query and you won’t regret the decision.
Marked as helpful