CSS allows you to customize the lists that can be made
with HTML.
The good news is that there are many powerful properties for doing so.
The bad news is that Netscape and Internet Explorer often support these properties in different ways. Both browsers have limitations in their support of list styles.
Netscape browsers only let you add the list CSS to <LI> tags - not just any tag.
Internet Explorer's support of CSS with relation to lists is only fully supported for browsers on the Windows platform.
In any case, be careful about using CSS for lists since it might not show the way you want it to on all browsers. However, most things won't ruin anything if the browser doesn't support it - it just shows as a normal list - so it will be okay to define lists that only work for the most widely used browser.
LIST PROPERTIES
4+: Browser version 4 or newer.
4W: Browser version 4 or newer, windows only.
DEFINING STYLES FOR LINKS
As mentioned in the above table, we have four unique selectors with respect to lists. The fourth selector, list-style is an overall selector that let you define all list related styles at once.
The three basic selectors are:
Assigning several properties at once
Instead of using different selectors for each list-style you can specify them all at once using the list-style property.
For example:
with HTML.
The good news is that there are many powerful properties for doing so.
The bad news is that Netscape and Internet Explorer often support these properties in different ways. Both browsers have limitations in their support of list styles.
Netscape browsers only let you add the list CSS to <LI> tags - not just any tag.
Internet Explorer's support of CSS with relation to lists is only fully supported for browsers on the Windows platform.
In any case, be careful about using CSS for lists since it might not show the way you want it to on all browsers. However, most things won't ruin anything if the browser doesn't support it - it just shows as a normal list - so it will be okay to define lists that only work for the most widely used browser.
LIST PROPERTIES
|
4+: Browser version 4 or newer.
4W: Browser version 4 or newer, windows only.
DEFINING STYLES FOR LINKS
As mentioned in the above table, we have four unique selectors with respect to lists. The fourth selector, list-style is an overall selector that let you define all list related styles at once.
The three basic selectors are:
|
Assigning several properties at once
Instead of using different selectors for each list-style you can specify them all at once using the list-style property.
For example:
|
0 comments:
Post a Comment