Css Properties
Css Properties
Css Properties
color: Either a color name or hexadecimal RGB value, or an RGB triple of the form:rgb(red, green,
blue)
frequency: A numeric value followed by hz or khz, indicating Hertz or kiloHertz
length: An optional sign (either + or -), immediately followed by a number (with or without
a decimal point), immediately followed by a two-character unit identifier like px or pt or em etc.
number: An optional sign, immediately followed by a number (with or without a decimal point).
percent An optional sign, immediately followed by a number (with or without a decimal point),
immediately followed by a percent sign.
shape: A shape keyword, followed by a parentheses-enclosed list of comma-separated shapespecific parameters. Currently, the only supported shape keyword is rect, which expects four
numeric parameters denoting the offsets of the top, right, bottom, and left edges of the rectangle.
time: A numeric value followed by s or ms, designating a time in seconds or milliseconds.
url: The keyword url, immediately followed (no spaces) by a left parenthesis, followed by a URL
optionally enclosed in single or double quotes, followed by a matching right parenthesis. For
example: url("http://www.tutorialspoint.com/")
Property
Possible Values
azimuth
background
angle
left-side
far-left
left
center-left
center
center-right
right
far-right
right-side
Description
Describes the position of a sound source along
the horizontal axis of the listener's environment.
background-attachment
background-color
backgroundattachment
backgroundcolor
backgroundimage
backgroundposition
backgroundrepeat
scroll
fixed
color
transparent
background-image
background-position
background-repeat
url
none
percent
none
length
top
center
bottom
left
right
repeat
repeat-x
repeat-y
no-repeat
border
See Description
borderbottom
See Description
borderbottom-width
bordercollapse
length
thin
medium
thick
collapse
separate
border-color
border-leftcolor
border-rightcolor
border-topcolor
borderbottom-color
border-left
border-leftwidth
color
transparent
color
color
color
color
See description
length
thin
medium
border-right
border-rightwidth
borderspacing
thick
See description
length
thin
medium
thick
See description
border-style
border-top
border-topwidth
dashed
dotted
double
groove
inset
none
outset
ridge
solid
See description
length
thin
medium
thick
border-width
length
thin
medium
thick
bottom
length
percent
top
bottom
left
right
both
left
none
right
shape
color
caption-side
clear
clip
color
content
See description
counterincrement
See description
counter-reset
See description
url
none
url
none
cue-before
cursor
url
auto
crosshair
default
active
pointer
move
e-resize
ne-resize
nw-resize
n-resize
se-resize
sw-resize
s-resize
w-resize
text
wait
help
progress
direction
ltr
rtl
block
inline
list-items
marker
none
display
elevation
angle
below
level
above
higher
lower
hide
show
left
none
right
empty-cells
float
font
See description
font-family
font-size
font-sizeadjust
font-style
font-variant
font-weight
font-size
line-height
font-family
xx-small
x-small
small
medium
large
xlarge
xx-large
larger
smaller
length
percent
none
ratio
wider
normal
font-stretch
narrower
ultracondensed
extracondensed
condensed
semi -condensed
semiexpanded
expanded
extra-ex
font-style
normal
italic
oblique
normal
small-caps
font-variant
font-weight
normal
bold
bolder
lighter
number
height
length
auto
length
left
percent
letter-spacing
length
normal
length
number
normal
percent
line-height
list-style
list-styleimage
See description
url
none
list-style-image
liststyle-position
list-style-type
list-style-type
.
list-styleposition
inside
outside
circle
disc
square
decimal
lower-alpha
list-style-type
lower-roman
none
upper-alpha
upperroman
Defines all four of an element's margins
margin
marginbottom
length
percent
auto
length
percent
auto
length
percent
auto
margin-left
margin-right
length
percent
auto
length
percent
auto
length
margin-top
marker-offset
auto
marks
crop
cross
none
inherit
max-height
percent
length
none
max-width
percent
length
none
percent
length
min-height
min-width
percent
length
orphans
outline
number
outline-color
color
invert
outline-colorstyle
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
thin
medium
thick
inherit
outline-width
overflow
padding
paddingbottom
auto
hidden
scroll
visible
See description
length
percent
padding-left
length
percent
length
percent
padding-right
padding-top
length
percent
page
page-breakafter
page-breakbefore
page-breakinside
name
auto
always
avoid
left
right
auto
always
avoid
left
right
auto
avoid
pause
percent
time
pause-after
percent
time
percent
time
frequency
x-low
low
medium
high
x-high
pause-before
pitch
pitch-range
number
play-during
url
mix
none
repeat
position
absolute
fixed
relative
quotes
static
List of strings
richness
number
length
percent
auto
length
portrait
landscape
inherit
right
size
speak
speakpunctuation
normal
none
spell-out
always
once
speak-header
speaknumeral
continuous
digits
code
none
speech-rate
number
x-slow
slow
medium
fast
x-fast
faster
slower
stress
number
auto
fixed
center
justify
left
right
blink
line-through
none
overline
underline
length
table-layout
text-align
textdecoration
text-indent
text-shadow
texttransform
percent
See description
capitalize
lowercase
none
uppercase
length
percent
top
vertical-align
percent
baseline
bottom
middle
sub
super
text-bottom
text-top
top
collapse
hidden
visible
visibility
voice-family
List of voices
volume
number
percent
silent
x-soft
soft
medium
loud
x-loud
white-space
normal
nowrap
pre
widows
number
width
length
percent
auto
length
normal
word-spacing
z-index
number
Description
Use this class to add special effect to an activated element
:focus
Use this class to add special effect to an element while the element has focus
:hover
Use this class to add special effect to an element when you mouse over it
:link
:visited
:first-child
Use this class to add special effect to an element that is the first child of some
other element.
:lang
:firstletter
Use this element to add special effect to the first letter of a text
:first-line
Use this element to add special effect to the first line of a text
:before
:after
This is a complete reference guide for web developers where haved we listed all the CSS properties
defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets , Level 2
Aural
Generated Content
Table
Background
Text
Border
Margin
Classification
Outlines
Pseudo-classes
Dimension
Padding
Pseudo-elements
Font
Positioning
Description
azimuth
background
background -attachment
background-color
background-image
background-position
background-repeat
backgroundattachment
background-color
background-image
background-position
background-repeat
border
border-bottom
border-bottom-width
border-collapse
border-color
Sets the color of all four of an element's borders; default is the color
of the element
border-left-color
Sets the color of an element's left borders; default is the color of the
element
border-right-color
border-top-color
Sets the color of an element's top borders; default is the color of the
element
border-bottom-color
border-left
border-left-width
border-right
border-right-width
border-spacing
With separate borders set the spacing between borders. One value
sets vertical and horizontal spacing and two values sets horizontal
and vertical spacing respectively.
border-style
border-top
border-top-width
border-width
bottom
caption-side
clear
clip
color
content
counter-increment
counter-reset
cue-after
cue-before
cursor
direction
display
elevation
empty-cells
float
font
Sets all the font attributes for an element. Value is any of the values
for:
font-style
font-variant
font-weight
font-size
line-height
font-family
font-family
font-size
font-size-adjust
font-stretch
font-style
Defines the style of the face, either normal or some type of slanted
style
font-variant
font-weight
height
left
Used with the position property to place the left edge of an element
letter-spacing
line-height
list-style
list-style-image
list-style-image
liststyle-position
list-style-type
list-style-type
list-style-position
list-style-type
Defines a list item's marker either for unordered lists (circle, disc, or
square) or for ordered lists (decimal, loweralpha, lower-roman, none,
upper-alpha, or upper-roman)
margin
margin-bottom
margin-left
margin-right
margin-top
marker-offset
marks
The marks property is used to set crop marks and cross marks on
paged media. This is used with the @page rule.
max-height
max-width
min-height
min-width
orphans
outline
outline-color
outline-color-style
outline-width
overflow
padding
padding-bottom
padding-left
padding-right
padding-top
page
page-break-after
page-break-before
page-break-inside
pause
pause-after
pause-before
pitch
pitch-range
Sets the range of the pitch, from 0 (flat) to 100 (broad); default is
50
play-during
position
quotes
richness
right
size
The size property is used in paged media to specify the size of the
page.
speak
speak-header
Determines if table headers are spoken once for each row or column
or each time a cell is spoken.
speak-numeral
speak-punctuation
speech-rate
Sets the rate of speech; a number sets the rate in words per minute
stress
table-layout
text-align
text-decoration
text-indent
text-shadow
text-transform
top
Used with the position property to place the top edge of an element.
vertical-align
visibility
voice-family
volume
white-space
widows
width
word-spacing
z-index
Description
:active
:focus
Use this class to add special effect to an element while the element
has focus
:hover
Use this class to add special effect to an element when you mouse
over it
:link
:visited
:first-child
Use this class to add special effect to an element that is the first child
of some other element.
:lang
:first-letter
Use this element to add special effect to the first letter of a text
:first-line
Use this element to add special effect to the first line of a text
:before
:after