• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Keeping It Stylish

Part of the reason templates have proved so popular is that they enable the designer to specify a consistent look and feel while allowing the content to vary. If you’re not careful how you define your editable regions in templates, however, you could lose the control over style. When selecting the content for an editable region, be careful not to include any formatting elements that could be altered. If you want to make sure that your heading remains a <h3> style, for example, select only the text within the tag, not the tag itself. If you include the <h3>...</h3> tag pair, it could easily be changed to another heading style in the document derived from the template. I frequently stay in the split-view mode to see both code and the design elements and ensure that I have selected only what I want to remain editable. This tip is doubly important in the new-world order of CSS where a heading could be specified like this: <h3 id="mainheading">. Also when using CSS, 99.9% of the time the style sheet declarations (whether you are working with external or internal styles) should remain in the locked part of the template.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint