Web Design

(Nancy Kaufman) #1

147


CHAPTER

Advanced CSS 5


Can I link to more than one style sheet?
Yes. A single page can be linked to as many style
sheets as you want. However, if there are conflicts
in the style declarations from one sheet to the next,
the sheet whose <link> tag is lowest in the order
applies.

Is there any other way to link to a style sheet?
Yes. Modern browsers support importing style sheets,
which can be done by placing an @import
command between <style> tags. The @import
command takes as its value the keyword url, with a
path to the CSS document in parentheses.

When you view the page in
a browser, the styles are
properly applied.


3 Type type=”text/css”.


4 Type rel=”stylesheet”.


5 Type href=”?” />,
replacing? with a relative or
absolute path to the style
sheet. 3 4 5


TIPS

Free download pdf