December 8, 201015 yr I've created a site using Dreamweaver and have based all pages on a .dwt template so they can be updated. The template has one editable region that I'd like to have different text properties for each page. I have used the general h1, h2 classes for headings etc, but would like to have different alignments and spacing for the main text. Is it best to rename the editable region to be specific to each page (main_index) then make a CSS rule for that div? Thanks
December 8, 201015 yr If you have just one main content containing div on each page you could give that div a different id on each page and style each id p tag differently. #page1 p { font-size: 20px; } #page2 p { font-size: 25px; } and this markup with a different id on each page. The styles above will only affect p tags, not h tags, li tags, etc. <div id="page1"> <h1>.........</h1> <p>Text</p> <p>Text</p> </div> If you have several containing divs you could put the id on the page <body> tag:= <body id="page1"> <div> <h1>.........</h1> <p>Text</p> <p>Text</p> </div> <div> <h1>.........</h1> <p>Text</p> <p>Text</p> </div> </body> Edited December 8, 201015 yr by Wickham
Create an account or sign in to comment