-
Notifications
You must be signed in to change notification settings - Fork 159
Farshad Bagdeli #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Farshad Bagdeli #158
Conversation
.logo { | ||
grid-area: logo; | ||
background-color: #000000; | ||
|
||
svg { | ||
padding: 10px; | ||
height: 40px; | ||
width: 40px; | ||
fill: white; | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't nest CSS selectors inside of other selectors, you'd need to use specificity:
.logo {
grid-area: logo;
background-color: #000000;
}
.logo svg {
padding: 10px;
height: 40px;
width: 40px;
fill: white;
}
.header { | ||
grid-area: header; | ||
width: 697; | ||
height: 60px; | ||
border-left: 1px solid gray; | ||
border-right: 1px solid gray; | ||
border-bottom: 1px solid gray; | ||
.header-containe { | ||
|
||
background-color: black; | ||
display: grid; | ||
grid-template-columns: 5fr 5fr 1fr; | ||
p { | ||
color: white; | ||
text-align: center; | ||
padding: 20px 0px 10px 0px; | ||
} | ||
svg { | ||
fill: white; | ||
height: 30px; | ||
width: 30px; | ||
padding: 15px; | ||
} | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, and for a lot of your CSS actually. I imagine this has been causing you a bit of a headache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You HTML is good, and your CSS is fine but you're nesting a lot of things in CSS. CSS shouldn't have any nesting other than with things like media queries
@vherus Thanks in advance |
I still need to work on it