css - Single Stylesheet Multiple Pages Dreamweaver CS6 -


i have 2 pages share same stylesheet. how make changes one, without affecting other? new coding, please specific possible.

for instance: have main image on home page , want delete on practice areas page whenever deletes on pages.

help please, , thank in advance!

a practice styling pages differently have class name applied body or enclosing div corresponds page, e.g.:

<body class="home">   <div>content here</div> </body> 

this gives greater specificity, in css, writing:

.home div {   background-image: url('your-image.jpg') no-repeat left top; } 

... or such.

but, sounds image on home page content, rather presentation. in case should including in html rather css.

<body class="home">   <div><img src="your-image.jpg"> content here</div> </body> 

does help?


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -