user interface propertiesCSS2 introduced user interface properties, which allow the shape of the cursor to be set based on the object that it is hovering over, and to define the outline of an element. When the cursor is inserted in a field, and keystrokes will be directed to that field, it is said to have the focus. It is usual for some kind of outline to indicate this fact. CSS2 also introduced a series of color keywords which refer to system values such as the color of window borders. You can learn more about these in the section on color values. Lastly, CSS2 introduced the system font concept, which allows you to specify fonts based on those used by the system for various kinds of object, such as menu items and the default text for window items. For more on this, see the section on text style properties. cursorWhat it doesThis property sets the shape of the cursor when the mouse is hovering over a selected element. Possible valuesThe The possible keyword values for the cursor property, as spelt out in the CSS2 specification are
Default valuesThe default Is it inherited?Child elements inherit the Browser supportDetailed browser support information for this feature can be found in the full version of the Westciv CSS Guide, or in our CSS Browser Support Table. outlineWhat it doesThis property sets the outline around an element, usually used to indicate that the element has the keyboard focus, that is it will receive keystrokes. Elements do not need to have the focus to have an outline, however, good user interface principles should be followed. As a general rule, users expect the outline to indicate that the outlined element has the focus. This property is particularly helpful when designing forms for web pages. Possible values
Default valuesThe default value is the same as for each of the values described below. Is it inherited?Child elements do not inherit the Browser supportDetailed browser support information for this feature can be found in the full version of the Westciv CSS Guide, or in our CSS Browser Support Table. outline-colorWhat it does
Possible values
Default valuesIf no color is specified for the outline, the outline is Is it inherited?The Browser supportSee the Westciv CSS Guide, or our CSS Browser Support Table. outline-styleWhat it doesIn addition to width and color, the outline of an element can have a style. There are several possible styles. Possible valuesOutline styles are specified using keywords. The
Default valuesIf no Is it inherited?Elements do not inherit the Browser supportoutline-widthPossible valuesOutline widths can take either keyword values, or length values. The keyword values that can be used are
There is no specification for what these keywords mean, so different browsers will probably draw them as different thicknesses. The only guarantee is that Length values are discussed in detail in our section on values. Using relative length values you can create borders that are in proportion with the size of an element, or its contents. Default valuesIf no Is it inherited?An element does not inherit the Browser supportSee the Westciv CSS Guide, or our CSS Browser Support Table. next: values(C)1997-2001 Western Civilisation Pty. Ltd. |