I was wondering if it is possible to define element styles based on the value of the body identifier.
It's hard to explain, but something like this would be ideal:
HTML:
<body id="home">
CSS
body#home {
a { }
p { }
}
body#profile {
a { }
p { }
}
I know I can do this:
body#home a { }
but it becomes very repetitive.
I will wait for your answers,
Peter
source
share