Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This topic summarizes the syntactic structures that are available in styles..

Description

Structure Possible Values Windows Mobile CSS Mobile WAP CSS CSS1 CSS2 CSS3 Comments

!important

 

Yes

Yes

Yes

No

Yes

No

 

integer and real numbers

 

Yes

Yes

Yes

No

Yes

No

 

lengths

 

Yes

Yes

Yes

No

Yes

No

 

 

px

Yes

Yes

Yes

No

Yes

No

 

 

em

Yes

Yes

Yes

No

Yes

No

 

 

ex

Yes

Yes

Yes

No

Yes

No

 

 

in

Yes

Yes

No

No

Yes

No

 

 

cm

Yes

Yes

No

No

Yes

No

 

 

mm

Yes

Yes

No

No

Yes

No

 

 

pt

Yes

Yes

No

No

Yes

No

 

 

pc

Yes

Yes

No

No

Yes

No

 

percentage values

 

Yes

Yes

Yes

No

Yes

No

 

URI values

 

Yes

Yes

Yes

No

Yes

No

 

counter values

 

No

No

No

No

Yes

No

 

color values

 

Yes

Yes

Yes

No

Yes

No

 

 

# rgb

?

Yes

Yes

No

Yes

No

 

 

# rrggbb

Yes

Yes

Yes

No

Yes

No

 

 

rgb(r, g, b)

Yes

Yes

Yes

No

Yes

No

 

 

activeborder

Yes

No

No

No

Yes

No

System dependent color

 

activecaption

Yes

No

No

No

Yes

No

System dependent color

 

aliceblue

Yes

No

No

No

Yes

No

 

 

antiquewhite

Yes

No

No

No

Yes

No

 

 

appworkspace

Yes

No

No

No

Yes

No

System dependent color

 

aqua

Yes

Yes

Yes

No

Yes

No

 

 

aquamarine

Yes

No

No

No

Yes

No

 

 

azure

Yes

No

No

No

Yes

No

 

 

background

Yes

No

No

No

Yes

No

System dependent color

 

beige

Yes

No

No

No

Yes

No

 

 

bisque

Yes

No

No

No

Yes

No

 

 

black

Yes

Yes

Yes

No

Yes

No

 

 

blanchedalmond

Yes

No

No

No

Yes

No

 

 

blue

Yes

Yes

Yes

No

Yes

No

 

 

blueviolet

Yes

No

No

No

Yes

No

 

 

brown

Yes

No

No

No

Yes

No

 

 

burylywood

Yes

No

No

No

Yes

No

 

 

buttonface

Yes

No

No

No

Yes

No

System dependent color

 

buttonhighlight

Yes

No

No

No

Yes

No

System dependent color

 

buttonshadow

Yes

No

No

No

Yes

No

System dependent color

 

buttontext

Yes

No

No

No

Yes

No

System dependent color

 

cadetblue

Yes

No

No

No

Yes

No

 

 

captiontext

Yes

No

No

No

Yes

No

System dependent color

 

chartreuse

Yes

No

No

No

Yes

No

 

 

chocolate

Yes

No

No

No

Yes

No

 

 

coral

Yes

No

No

No

Yes

No

 

 

cornflowerblue

Yes

No

No

No

Yes

No

 

 

cornsilk

Yes

No

No

No

Yes

No

 

 

crimson

Yes

No

No

No

Yes

No

 

 

cyan

Yes

No

No

No

Yes

No

 

 

darkblue

Yes

No

No

No

Yes

No

 

 

darkcyan

Yes

No

No

No

Yes

No

 

 

darkgoldenrod

Yes

No

No

No

Yes

No

 

 

darkgray

Yes

No

No

No

Yes

No

 

 

darkgreen

Yes

No

No

No

Yes

No

 

 

darkkhaki

Yes

No

No

No

Yes

No

 

 

darkmagenta

Yes

No

No

No

Yes

No

 

 

darkolivegreen

Yes

No

No

No

Yes

No

 

 

darkorange

Yes

No

No

No

Yes

No

 

 

darkorchid

Yes

No

No

No

Yes

No

 

 

darkred

Yes

No

No

No

Yes

No

 

 

darksalmon

Yes

No

No

No

Yes

No

 

 

darkseagreen

Yes

No

No

No

Yes

No

 

 

darkslateblue

Yes

No

No

No

Yes

No

 

 

darkturquoise

Yes

No

No

No

Yes

No

 

 

darkviolet

Yes

No

No

No

Yes

No

 

 

deeppink

Yes

No

No

No

Yes

No

 

 

deepskyblue

Yes

No

No

No

Yes

No

 

 

dimgray

Yes

No

No

No

Yes

No

 

 

dodgerblue

Yes

No

No

No

Yes

No

 

 

firebrick

Yes

No

No

No

Yes

No

 

 

floralwhite

Yes

No

No

No

Yes

No

 

 

forestgreen

Yes

No

No

No

Yes

No

 

 

fuchsia

Yes

Yes

Yes

No

Yes

No

 

 

gainsboro

Yes

No

No

No

Yes

No

 

 

ghostwhite

Yes

No

No

No

Yes

No

 

 

gold

Yes

No

No

No

Yes

No

 

 

goldenrod

Yes

No

No

No

Yes

No

 

 

gray

Yes

Yes

Yes

No

Yes

No

 

 

graytext

Yes

No

No

No

Yes

No

System dependent color

 

green

Yes

Yes

Yes

No

Yes

No

 

 

greenyellow

Yes

No

No

No

Yes

No

 

 

highlight

Yes

No

No

No

Yes

No

System dependent color

 

highlighttext

Yes

No

No

No

Yes

No

System dependent color

 

honeydew

Yes

No

No

No

Yes

No

 

 

hotpink

Yes

No

No

No

Yes

No

 

 

inactiveborder

Yes

No

No

No

Yes

No

System dependent color

 

inactivecaption

Yes

No

No

No

Yes

No

System dependent color

 

inactivecaptiontext

Yes

No

No

No

Yes

No

System dependent color

 

indianred

Yes

No

No

No

Yes

No

 

 

indigo

Yes

No

No

No

Yes

No

 

 

infobackground

Yes

No

No

No

Yes

No

System dependent color

 

infotext

Yes

No

No

No

Yes

No

System dependent color

 

ivory

Yes

No

No

No

Yes

No

 

 

khaki

Yes

No

No

No

Yes

No

 

 

lavender

Yes

No

No

No

Yes

No

 

 

lavenderblush

Yes

No

No

No

Yes

No

 

 

lawngreen

Yes

No

No

No

Yes

No

 

 

lemonchiffon

Yes

No

No

No

Yes

No

 

 

lightblue

Yes

No

No

No

Yes

No

 

 

lightcoral

Yes

No

No

No

Yes

No

 

 

lightcyan

Yes

No

No

No

Yes

No

 

 

lightgoldenrod

Yes

No

No

No

Yes

No

 

 

lightgreen

Yes

No

No

No

Yes

No

 

 

lightgrey

Yes

No

No

No

Yes

No

 

 

lightpink

Yes

No

No

No

Yes

No

 

 

lightsalmon

Yes

No

No

No

Yes

No

 

 

lightseagreen

Yes

No

No

No

Yes

No

 

 

lightskyblue

Yes

No

No

No

Yes

No

 

 

lightslategray

Yes

No

No

No

Yes

No

 

 

lightsteelblue

Yes

No

No

No

Yes

No

 

 

lightyellow

Yes

No

No

No

Yes

No

 

 

lime

Yes

Yes

Yes

No

Yes

No

 

 

limegreen

Yes

No

No

No

Yes

No

 

 

linen

Yes

No

No

No

Yes

No

 

 

magenta

Yes

No

No

No

Yes

No

 

 

maroon

Yes

Yes

Yes

No

Yes

No

 

 

mediumaquamarine

Yes

No

No

No

Yes

No

 

 

mediumblue

Yes

No

No

No

Yes

No

 

 

mediumorchid

Yes

No

No

No

Yes

No

 

 

mediumpurple

Yes

No

No

No

Yes

No

 

 

mediumseagreen

Yes

No

No

No

Yes

No

 

 

mediumslateblue

Yes

No

No

No

Yes

No

 

 

mediumspringgreen

Yes

No

No

No

Yes

No

 

 

mediumturquoise

Yes

No

No

No

Yes

No

 

 

mediumvioletred

Yes

No

No

No

Yes

No

 

 

menu

Yes

No

No

No

Yes

No

System dependent color

 

menutext

Yes

No

No

No

Yes

No

System dependent color

 

midnightblue

Yes

No

No

No

Yes

No

 

 

mintcream

Yes

No

No

No

Yes

No

 

 

mistyrose

Yes

No

No

No

Yes

No

 

 

moccasin

Yes

No

No

No

Yes

No

 

 

navajowhite

Yes

No

No

No

Yes

No

 

 

navy

Yes

Yes

Yes

No

Yes

No

 

 

oldlace

Yes

No

No

No

Yes

No

 

 

olive

Yes

Yes

Yes

No

Yes

No

 

 

olivedrab

Yes

No

No

No

Yes

No

 

 

orange

Yes

No

No

No

Yes

No

 

 

orangered

Yes

No

No

No

Yes

No

 

 

orchid

Yes

No

No

No

Yes

No

 

 

palegoldenrod

Yes

No

No

No

Yes

No

 

 

palegreen

Yes

No

No

No

Yes

No

 

 

paleturquoise

Yes

No

No

No

Yes

No

 

 

palevioletred

Yes

No

No

No

Yes

No

 

 

papyawhip

Yes

No

No

No

Yes

No

 

 

peachpuff

Yes

No

No

No

Yes

No

 

 

peru

Yes

No

No

No

Yes

No

 

 

pink

Yes

No

No

No

Yes

No

 

 

plum

Yes

No

No

No

Yes

No

 

 

powderblue

Yes

No

No

No

Yes

No

 

 

purple

Yes

Yes

Yes

No

Yes

No

 

 

red

Yes

Yes

Yes

No

Yes

No

 

 

rosybrown

Yes

No

No

No

Yes

No

 

 

royalblue

Yes

No

No

No

Yes

No

 

 

saddlebrown

Yes

No

No

No

Yes

No

 

 

salmon

Yes

No

No

No

Yes

No

 

 

sandybrown

Yes

No

No

No

Yes

No

 

 

scrollbar

Yes

No

No

No

Yes

No

System dependent color

 

seagreen

Yes

No

No

No

Yes

No

 

 

seashell

Yes

No

No

No

Yes

No

 

 

sienna

Yes

No

No

No

Yes

No

 

 

silver

Yes

Yes

Yes

No

Yes

No

 

 

skyblue

Yes

No

No

No

Yes

No

 

 

slateblue

Yes

No

No

No

Yes

No

 

 

slategray

Yes

No

No

No

Yes

No

 

 

snow

Yes

No

No

No

Yes

No

 

 

springgreen

Yes

No

No

No

Yes

No

 

 

tan

Yes

No

No

No

Yes

No

 

 

teal

Yes

Yes

Yes

No

Yes

No

 

 

thistle

Yes

No

No

No

Yes

No

 

 

threeddarkshadow

Yes

No

No

No

Yes

No

System dependent color

 

threedface

Yes

No

No

No

Yes

No

System dependent color

 

threedhighlight

Yes

No

No

No

Yes

No

System dependent color

 

threedlightshadow

Yes

No

No

No

Yes

No

System dependent color

 

threedshadow

Yes

No

No

No

Yes

No

System dependent color

 

tomato

Yes

No

No

No

Yes

No

 

 

turquoise

Yes

No

No

No

Yes

No

 

 

violet

Yes

No

No

No

Yes

No

 

 

wheat

Yes

No

No

No

Yes

No

 

 

white

Yes

Yes

Yes

No

Yes

No

 

 

whitesmoke

Yes

No

No

No

Yes

No

 

 

window

Yes

No

No

No

Yes

No

System dependent color

 

windowframe

Yes

No

No

No

Yes

No

System dependent color

 

windowtext

Yes

No

No

No

Yes

No

System dependent color

 

yellow

Yes

Yes

Yes

No

Yes

No

 

 

yellowgreen

Yes

No

No

No

Yes

No

 

See Also