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

Applying CSS Styles

Applying CSS styles is very easy, especially given how much work styles do. The only catch, as noted below, is that you have to be sure to attach a style to the correct page element. Here is where knowing a bit of HTML comes in handy.

CSS styles must be applied to an existing HTML tag. It is possible to apply a CSS style to any one of several tags, including paragraphs (<p>), hyperlinks (<a>), and table cells (<td>), among others—but therein lies a problem. A given block of text can appear inside a hyperlink, which is itself inside a paragraph, which is inside a table cell. In such situations, it is hard for Dreamweaver to guess to which tag it should attach the style. The technique below ensures that you give Dreamweaver the information it needs to apply the style to the right tag every time.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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