• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 16. Formatting Web Pages Using Casc... > Creating Advanced CSS Styles

Creating Advanced CSS Styles

The third type of style is advanced styles; this is the third radio button that is available when you are creating a new CSS style with Dreamweaver. This type of style can redefine a group of HTML tags instead of just one. For instance, you could use an advanced style to define what a paragraph looks like only when nested within a table cell by entering the table cell tag, td, and then the paragraph tag, p. To do this, you enter all the tag names in the Selector box, as shown in Figure 16.12, and then define the style. The tags need to be in the correct hierarchical order, so if you create a style with a <p> tag nested within a <td> tag, <td> must come before <p> in the style selector.

Figure 16.12. You can define attributes for a tag within another tag by using advanced styles in the New CSS Rule dialog box.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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