Stylesheets: The Tool of the Web Design Gods
Amaze your friends! Squash your enemies!
- What is the benefit to using the "Importing a Stylesheet" feature?
- A stylesheet can be imported and combined with other methods, but linking to a stylesheet does not allow this.
- What does the browser do first when importing a stylesheet?
- The browser imports the css file's rules first.
- What line must always be first when importing a stylesheet?
- The @import line must be first.
- What does it do after that?
- It then gets the rules from the embedded stylesheet.
- When importing a stylesheet, if both the embedded stylesheet and the imported stylesheet contain the same selector, what wins out, the embedded stylesheet or the imported stylesheet?
- The embedded stylesheet overrides the imported stylesheet.
Back
Next