
Sets the style of A elements for the default state of the link. This is when the link has not been visited, and is not actively being navigated or has a mouse positioned over it. Setting the hover pseudo-class is often used in conjunction with setting specific styles for the other states of a link: active, link, and hover. Note the syntax in the example below uses a colon (:) to specify a pseudo-class.
Using pseudo-classes on elements other than the A element has no effect.
The following code sets unvisited links to red and visited links to blue.
A:link { color: red } /* unvisited link */ A:visited { color: blue } /* visited links */
Specifies the width of the element. Used with the position attribute to specify the specific dimensions for the element that is to be positioned on the page. For example, DIV and SPAN cannot be positioned unless a width is provided. Percentage values are based on the width of the parent element.
The width attribute, like all other CSS attributes, specifies a string value. When scripting the width property, use either the pixelWidth or posWidth property for numeric manipulation of a width value.
{ width: length | percentage | auto}
This attribute is not inherited.
APPLET, DIV, EMBED, FIELDSET, HR, IFRAME, IMG, INPUT, TEXTAREA, INPUT type=button, MARQUEE, OBJECT, SELECT, SPAN, TABLE
Specifies the stacking order of positioned elements. By default (auto), the stacking order is bottom-to-top in the order that they appear in the HTML source. Positive z-index values are positioned above a negative (or lesser value) z-index. Two elements with the same z-index are stacked according to source order.
{ z-index: integer | auto }
This attribute is not inherited.
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HTML, I, INPUT, INPUT type=button, INPUT type=file, INPUT type=reset, INPUT type=submit, INPUT type=text, TEXTAREA, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.