CSS Help Sheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

liquidicity CSS Help Sheet.

Syntax This Needs a Diagram Shorthand


Syntax height height; width; background
selector {property: value;} margin-top; border
External Style Sheet margin-right; border-bottom
width margin-bottom; border-left
<link rel=”stylesheet” type=”text/css” margin-left; border-right
href=”style.css” /> padding-top; border-top
Internal Style padding-right; font
<style type=”text/css”> border padding-bottom; list-style
selector {property: value} margin padding padding-left; margin
</style> padding
Inline Style Border Comments
<tag style=”property: value”> border-width Width of the border /* Comments */
border-style dashed; dotted; double; groove; inset; Pseudo
General outset; ridge; solid; none; Selectors
class String preceded by a full stop [.] border-color Colour of the border
:hover
ID String preceded by a hash [#] :active
Position :focus
div Formats structure or block of text
clear If any floating elements around the element :link
span Inline formatting
both, left, right, none :visited
color Foreground colour :first-line
float Floats to a specified side
cursor Appearance of the cursor :first-letter
left, right, none
display block; inline; list-item; none left The left position of an element Media Types
overflow How to handle content that auto, length values [pt, in, cm, px] all
overflows its box. top The top position of an element braille
visible, hidden, scroll, auto auto, length values [pt, in, cm, px] embossed
visibility visible, hidden position static, relative, absolute handheld
print
z-index Above or below overlapping elements projection
Font auto, integer [higher numbers on top] screen
font-style italic, normal speech
font- normal, small-caps Background tty
variant background-color Colour of background tv
font- bold, normal, lighter, bolder, background-image Background image Units
weight integer [100-900]
background-repeat repeat, no-repeat, repeat-x, repeat-y Length
font-size Size of the font background- Background image scrolls with element %
attachment scroll, fixed em
font-family Specific font[s] to be used.
pt
background- (x y), top, center, bottom, left, right px
Text position Keywords
letter-spacing Space between letters bolder
line-height Vertical space between baselines List lighter
list-style- Type of bullet or numbering in the list larger
text-align Horizontal alignment
text- blink, line-through, none, type disc; circle; square; decimal; lower-roman;
decoration overline, underline upper-roman; lower-alpha; upper-alpha; none
list-style- Position of the bullet or number in a list
text-indent First line indentation
position inside; outside
text- capitalise, lowercase, uppercase
transform list-style- Image to be used as the bullet in the list
image
vertical-align Vertical alignment
word-spacing Spacing between words
© 2007 Go Squared Ltd.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy