|
pageoneresults -> RE: I have an issue that I need help resolving. (5/29/2003 18:02:17)
|
Hey bobby, you posted a perfect example for me to show you how to use the Cascade to optimize your CSS. You' ll come to rely on the Cascade as it will be of great benefit in keeping your CSS files lean and mean. Here is the above code optimized and utilizing the Cascade. This code does validate with the W3C and shows no errors or warnings! a { text-align: center; font-size: 14px; font-weight: normal; text-decoration: underline; } a:link, a:visited, a:active { color: #c30; background: transparent; } a:hover { color: #fff; background: #6b9689; text-decoration: none; } a.white:link, a.white:visited, a.white:active { color: #fff; background: transparent; } a.white:hover { color: #6b9689; background: #fff; text-decoration: none } Here is a working example of [url=" http://www.csstips.com/cascade/" ]Bobby' s Optimized CSS[/url] using the Cascade.
|
|
|
|