An Overview of CSS in Dreamweaver MX 2004 – Setting Off Some of the Class Styles Using the Tag Inspector
Setting Off Some of the Class Styles Using the Tag Inspector
As experienced CSS users will have noticed, the choices immediately available within the Property inspector are limited solely to common appearance choices available for text. Let’s set off some of the class styles we have already developed by breaking out the Tag inspector.
- Choose Window > Tag Inspector if necessary to enable this panel group.
- In the Tag inspector panel group, select the Relevant CSS tab.
- Click either within the table cell or the paragraph that has the dullndark class applied.
- Although you can make the changes to that particular class within the Relevant CSS panel, let’s use the CSS Properties panel by double-clicking the dullndark class in the Relevant CSS panel.
- As the CSS Properties panel appears, the page switches into Code view and navigates to the code for that style. Navigate to the Border category.
- Set the following border settings:
- Border-left-color: #996633
- Border-left-style: solid
- Border-left-width: thin
The one drawback to this methodology is that you will write styles to the document head itself. You will best leverage the power of CSS if you create external CSS files and link to them, rather than define styles within each page. Although Dreamweaver allows you to export CSS styles to an external style sheet, once they are defined internally, doing so does not remove the internal style sheet code in the head of the document. Could that cause problems later? You betcha!