August 12th, 2009
Some older browsers, such as Netscape Navigator 4 and IE 4, have poor support for CSS. It is possible to hide styles from these browsers using specific media types and @import rules.
All styles will be hidden from Netscape Navigator 4 by changing the link element's media type from screen to screen, projection Read More...
Tags: class, combine, CSS, hide, How To, padding, style, Tutorials
Posted in CSS Applying Styles |
1 Comment »
August 12th, 2009
@import Styles?
Header and external style sheets also can import other style sheets using the @import rule. The @import rule must be placed before all other rules in the header or external style sheet.
@import "advanced.css";
p {
font-family: arial, helvetica, san-serif;
margin: 1em;
padding: 1em;
background-color: black;
}
Imported styles can be used to link to multiple CSS files as well as to hide styles from older browers.
Tags: combine, CSS, How To, id, import, selectors, Tutorials
Posted in CSS Applying Styles |
No Comments »
August 11th, 2009
The third method of applying styles to document involves linking to external style sheets. External style sheets are the most appropriate method for styling documents. If styles need to be changes, the modifications can take place in one CSS file rather than all HTML pages.
To change the header style to an external style, move the rule set to a new CSS file Read More...
Tags: CSS, external, How To, id, link, padding, selectors, stylesheet, Tutorials
Posted in CSS Applying Styles |
No Comments »
August 10th, 2009
CSS, Inline styles can be applied directly to elements in the HTML code using the style attribute. However, inline styles should be avoided wherever possible because the styles are added to the HTML markup. This defeats the main purpose of CSS, which is to apply the same styles to as many pages as possible across your website using external style sheets Read More...
Tags: CSS, How To, html, id, inline, selectors, style, styles, Tutorials
Posted in CSS Applying Styles |
No Comments »