Hi
How about keeping homepage customization only and keep a top margin for posts and pages?
I tried with the following but didn’t work:
.page .top-section,
#content {
margin-top: 50px;
}
.home .page .top-section,
#content {
margin-top: 0px;
}
Hi
How about keeping homepage customization only and keep a top margin for posts and pages?
I tried with the following but didn’t work:
.page .top-section,
#content {
margin-top: 50px;
}
.home .page .top-section,
#content {
margin-top: 0px;
}
Comma in CSS means that you are separating one select from another and not combining them.
In your given example, this code:
.page .top-section,
#content {
margin-top: 50px;
}
Translates as this:
.page .top-section {
margin-top: 50px;
}
#content {
margin-top: 50px;
}
But if we take out commas in your example then you won’t be targeting any element at all.