css3 - Different css for different pages -


i have blog on blogger , have widgets. wondering possible widget displayed differently on homepage compared rest of pages?

for example box

/* on home page, should appear */ #box { background: green; width:200px; height:100px; }  /* on other pages, should appear */ #box { background: red; width:200px; height:200px; } 

i suggest, put id home page like,

<body id="home"> , other ids other pages

now css changes be

/* on home page, should appear */ #home #box { background: green; width:200px; height:100px; }  /* on other pages, should appear */ #others #box { background: red; width:200px; height:200px; } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -