Sie sind auf Seite 1von 4

Cascading Style Sheet Syntax: Selector {property: value}

Property back-ground-color Values Any color, by name or hex code URL Any color, by name or hex code Any named font cursive fantasy monospace sans-serif serif font-size Number + unit xx-small x-small small medium large x-large xx-large font-weight normal bold bolder lighter line-height normal number + unit text-align left right center justify liststyleimage list- style-position inside outside outside Wrapping the list text inside or outside of bullet points URL none URL of an image to display as the bullets for a list Up to you + normal text direction normal Vertical spacing between lines of text Which way the text on the page should be aligned normal Weight (how bold or light) the font should appear medium Size of the font to be displayed Default Value transparent Description Background color of the page

back-ground-image color

none Up to you!

URL of an image to display in a page background Color of the fore-ground text

font-family

Up to you!

Font to display

Property list- style-type

Values disc circle square decimal decimalleadingzero lower-alpha upper-alpha none

Default Value disc

Description Bullet type on lists

display

block inline none

inline

Format of a defined section of the page

top

Percentage number + unit auto

auto

For absolutely positioned objects, the offset from the top edge of the positioning context For absolutely positioned objects, the offset from the right edge of the positioning context For absolutely positioned objects, the offset from the bottom edge of the positioning context For absolutely positioned objects, the offset from the left edge of the positioning context Method by which an element box is laid out, relative to positioning context

right

Percentage number + unit auto

auto

bottom

Percentage number + unit auto

auto

left

Percentage number + unit auto static absolute relative fixed

auto

position

static

visibility

collapse visible hidden inherit

inherit

Indicates whether an object will be displayed on the page

z-index

Number auto

auto

Stacking order of an object The displayed style of an objects borders Can be broken out into bordertop-style, border-rightstyle, border-bottomstyle, and border-leftstyle

borderstyle

none dotted dashed solid double groove

Not defined

Property

Values ridge inset outset

Default Value

Description

border-width

thin medium thick Number

Not defined

Width of the border around an object Can be broken out into bordertop-width, border-rightwidth, border-bottomwidth, and border-leftwidth

border- color

Any color, by name or hex code transparent

Not defined

Color of an objects border Can be broken out into bordertop-color, border-rightcolor, border-bottomcolor, and border-leftcolor

float

left right none

none

Specifies whether the object should be floated to one side of the document Displayed height of an object

height

Percentage number + unit auto

auto

width

Percentage number + unit auto

auto

Displayed width of an object

margin

Percentage number + unit auto

Not defined

Displayed margins of an object Can be broken out into margintop, margin-right, marginbottom, and margin-left

padding

Percentage number + unit auto

Not defined

Displayed blank space around an object Can be broken out into padding-top, padding-right, paddingbottom, and padding-left

cursor

auto crosshair default pointer move text help

auto

Color name Black Silver Gray White Maroon Red Purple Fuchsia Green Lime Olive Yellow Navy Blue Teal Aqua

#RGB code #000000 #C0C0C0 #808080 #FFFFF #800000 #FF0000 #800080 #FF00FF #008000 #00FF00 #808000 #FFFF00 #000080 #0000FF #008080 #00FFFF

color

Das könnte Ihnen auch gefallen