Example
This style rule assigns an outline with a
2px width on focus to anchor elements
within the element with ID "example":
#example a:focus {
outline-width: 2px;
outline-style: solid;
}
SPEC
version initial inherited
CSS2, 2.1 medium NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1.5+ IE7
FULL FULL FULL NONE
Value
The property takes the same values as border-width (p. 254)??”for example, a CSS
length (px, pt, em, and so on) or one of the allowed keywords??”but percentage or
negative values are not allowed.
261 Box Properties
The keyword width values of thin, medium, and thick aren??™t explicitly defined??”their
display will depend on the user agent??”but have the following meaning: thin <=
medium <= thick.
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full None None None None
Internet Explorer for Windows (up to and including version 7) and Firefox 1.0
provide no support for outline.
Box Properties
outline
outline: { [outline-width] [outline-style]
[outline-color] | inherit } ;
The shorthand property outline sets
the outline-color, outline-style, and
outline-width around an element
using the values specified.
Pages:
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400