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

Chapter 37. Using Cascading Style Sheets... > Importing and Using an External Styl...

Importing and Using an External Style Sheet

Text formatted with HTML tags overrides any settings in your CSS styles on most browsers. If you notice that your text stays red, even though you defined it as green in a CSS style, it's probably formatted as red with the HTML font tag. Remove the formatting, and the CSS style will apply.


After you create one (or more) external style sheet you can implement it by first importing it on your pages. You can even specify an external style sheet for your site to be used whenever you create a new page. The CSS tab of the Site window enables you to manage your external style sheets and to drag and drop them onto your pages to import them. After they're imported, the styles contained in the external style sheet appear in the CSS palette along with any internal styles you created. The reason cascading style sheets cascade is because they are applied in a cascading fashion starting with external style sheets, followed by internal styles, followed by ID styles, followed by HTML formatting. This means that if you define the <h1> tag to be red text in your external style sheet, but then redefine the <h1> tag to be blue in the internal style, the text appears blue. The internal style supersedes the external style:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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