Tell us what’s happening:
i put all in order yet the result is showing to do that
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* User Editable Region */
@media only screen and (max-width:550px){
.hero-title{
font-size:6rem;
}
}
{.hero-subtitle{
font-size:1.8rem;
}
}
{
.author{
font-size:1.8rem;
}
}
{
.quote{
font-size:1.8rem;
}
}
{
.list-title{
font-size:1.8rem;
}
}
{
.social-icons{
font-size:2rem;
}
}
{
.text{
font-size:1.6rem;
}
}
/* User Editable Region */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Challenge Information:
Learn CSS Grid by Building a Magazine - Step 79
Hello,
in the instructions you are asked to create a media query then add everything inside of it, yet you only added one and put the reset of rules outside with each one having its own {}
,
So first add all the code inside the media query then remove those extra {}
around the added rules.
Notice how four rules from the second to fifth share the same CSS code, you have to make them one rule by creating a selector that selects the elements in question all at once, this is provided to you in the instructions
.hero-subtitle, .author, .quote, .list-title
selector with a font-size
set to 1.8rem
but here is an example in case you did not understand
let’s say I have this CSS code
.container {
color: red;
}
.wrapper {
color: red;
}
.title {
color: red;
}
Notice how I repeat myself three times there by writing color: red;
, you can group them like this
.container, .wrapper, .title {
color: red;
}
1 Like
Hey Buddy Here you need to only put 4 selectors kindly follow the instructions.
2nd thing as @constantcode9909 Suggested you kindly put all your code inside @mediaquery
Hope You Understand.