Hi,
I’d like to change:
layout.css
.content, .sidebar{
padding-top:0px;
padding-bottom:0px;
and grid.css
.container {
position: relative;
width: 100%;
margin: 0 auto;
padding: 0px;
clear: both;
}
only for page ID 2? How do I achieve this with CSS?
Hi,
Just add the page id before the class.
For example,
.page-id-2 .content, .sidebar{
padding-top:0px;
padding-bottom:0px;
.page-id-2 .container {
position: relative;
width: 100%;
margin: 0 auto;
padding: 0px;
clear: both;
}
Hope this helps!
FYI – you can also make CSS specific to element using custom class.
Just to update the solution works.
awesome ;)