Jump to content

special css for specific cms page


sickshot

Recommended Posts

hi,

 

I want one single cms page to have different css than any other cms pages.

 

is there any way to change css by page ID or something?

 

for example:

 

i have this for all cms pages:

 

#cms .rte{
width: 88%;
padding: 20px;
 text-align: justify;
text-justify: inter-word;
font-family: "Helvetica", Arial, sans-serif;
margin-left: auto;
    margin-right: auto;
}
 
 
but for the page with ID 17 I want to have:
 
#cms .rte{
width: 100%;
 
 
 
 
running version PS 1.6.0.9 
 
 
 

 

Link to comment
Share on other sites

  • 4 years later...

heres the solution for styling cms pages by its ID:

point to a specific cms page with ".cms-17" and then to a class you need.

for example:  .cms-17 .revealimg

 

at the end it should look like this:

.cms-17 .revealimg {

width: 100%;

}

 

 

same applies to product pages:

 

.product-17 .revealimg {

width: 100%;

}

Edited by sickshot (see edit history)
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...