Data types

Name Bytes* Description Range*
char 1 character or integer 8 bits length. signed: -128 to 127
unsigned: 0 to 255
short 2 integer 16 bits length. signed: -32768 to 32767
unsigned: 0 to 65535
long 4 integer 32 bits length. signed:-2147483648 to 2147483647
unsigned: 0 to 4294967295
int * Integer. Its length traditionally depends on the length of the system's Word type, thus in MSDOS it is 16 bits long, whereas in 32 bit systems (like Windows 9x/2000/NT and systems that work under protected mode in x86 systems) it is 32 bits long (4 bytes). See short, long
float 4 floating point number. 3.4e + / - 38 (7 digits)
double 8 double precision floating point number. 1.7e + / - 308 (15 digits)
long double 10 long double precision floating point number. 1.2e + / - 4932 (19 digits)
bool 1 Boolean value. It can take one of two values: true or false NOTE: this is a type recently added by the ANSI-C++ standard. true or false
BOOL 1 Typedef alias of char that uses defines TRUE 1 or FALSE 0. Is actually just a hack to get booleans for C. TRUE or FALSE
wchar_t 2 Wide character. It is designed as a type to store international characters of a two-byte character set. NOTE: this is a type recently added by the ANSI-C++ standard. Not all compilers support it. wide characters

SQL numeric types

Type Bytes Minimum Value Maximum Value
(Signed/Unsigned) (Signed/Unsigned)
TINYINT 1 -128 127
0 255
SMALLINT 2 -32768 32767
0 65535
MEDIUMINT 3 -8388608 8388607
0 16777215
INT 4 -2147483648 2147483647
0 4294967295
BIGINT 8 -9223372036854775808 9223372036854775807
0 18446744073709551615

HTTP status codes

1xx: Informational

These reponse codes indicate a provisional response that should be followed by another response.

100 Continue The server has not rejected the initial part of the request, and the client should continue.
101 Switching Protocols The server agrees with the client's request to change protocols.

2xx Successful

These reponse codes indicate that the client's request was successfully received, understood, and accepted.

200 OK The request has succeeded.
201 Created The request has been fulfilled and resulted in a new resource being created.
202 Accepted The request has been accepted for processing, but the processing has not been completed.
203 Non-Authoritative Information The returned headers are not definitive, but are gathered from a local or a third-party copy.
204 No Content The server has fulfilled the request but does not need to return any output.
205 Reset Content The server has fulfilled the request and the client should reset the document view (primarily intended to make data-entry easier).
206 Partial Content The server has fulfilled the partial GET request for the resource.

3xx: Redirection

These response codes indicate that the client was redirected to another URI, or that further action needs to be taken by the user agent in order to fulfill the request.

300 Multiple Choices There are several resources that match this request, and the client was redirected to one of them.
301 Moved Permanently The requested resource has been assigned a new permanent URI and any future references to this resource should use the new URI.
302 Found The requested resource resides temporarily under a different URI. Since the redirection might be altered, continue to use the old URI.
303 See Other The response to the request can be found under a different URI and should be retrieved from the new URI.
304 Not Modified The document has not been modified since the last request, and the locally cached copy should be used instead.
305 Use Proxy The requested resource must be accessed through a proxy.
306 (Unused) Used in a previous version of the protocol.
307 Temporary Redirect The requested resource resides temporarily under a different URI. Since the redirection may be altered on occasion, continue to use the current URI.

4xx: Client Errors

These response codes are intended for cases in which the client seems to have erred.

400 Bad Request The request could not be understood by the server due to malformed syntax.
401 Unauthorized The request requires user authentication.
402 Payment Required This code is reserved for future use.
403 Forbidden The server understood the request, but is refusing to fulfill it. Typically due to file access permissions on the server.
404 Not Found The server has not found anything matching the URI.
405 Method Not Allowed The request method is not allowed. Typically when trying to execute a normal document or display a script.
406 Not Acceptable According to the client's request, it isn't capable of handling the response.
407 Proxy Authentication Required This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.
408 Request Timeout The client did not produce a request within the time that the server was prepared to wait.
409 Conflict The request could not be completed due to a conflict with the current state of the resource. Typically only seen with clients that can manage files on the remote server.
410 Gone The requested resource is no longer available at the server and no forwarding address is known.
411 Length Required The server refuses to accept the request without a defined Content-Length header.
412 Precondition Failed The precondition given in one or more of the header fields failed when it was tested on the server.
413 Request Entity Too Large The server is refusing to process a request because the request entity is larger than the server is willing or able to process.
414 Request-URI Too Long The server is refusing to service the request because the requested URI is too long.
415 Unsupported Media Type The server is refusing to service the request because the client does not support the response format.
416 Requested Range Not Satisfiable The server could not find the range specified in the Range header.
417 Expectation Failed The server could not meet the expectation given in the Expect header.

5xx: Server Errors

These response codes indicate cases in which the server is aware that it has erred or is incapable of performing the request.

500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.
501 Not Implemented The server does not support the functionality required to fulfill the request.
502 Bad Gateway The server is a gateway or proxy and received an invalid response from the upstream server it accessed in attempting to fulfill the request.
503 Service Unavailable The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
504 Gateway Timeout The server is a gateway or proxy and did not receive a timely response from the upstream server.
505 HTTP Version Not Supported The server does not support, or refuses to support, the HTTP protocol version that was used in the request.

6xx: Internal Errors

These response codes indicate that an error occurred in the link checking program itself (these are unofficial error codes used to report problems).

600 Malformed URI The link checking program was not able to parse the URI. This means that the URI was either empty, or not a valid URI (e.g. "Ask at S&E Reference Desk").
601 Connection Timed Out The server did not respond before the connection timed out.
602 Unknown Error Some other error occurred in contacting the server, making the request, or parsing the response. This could be due to a mangled or incorrectly formatted response from the server.
603 Could Not Parse Reply The reply from the server could not be parsed. This could indicate a malformed response, or a non-numerical response code.
604 Protocol Not Supported This URI uses a protocol that is not currently supported by the linkchecker program. The linkchecker currently only supports http, so ftp, https, gopher, etc. are not supported. Also, some protocols (such as mailto://) cannot be checked.

Common ports

Ports 1-1024 are the core server ports and mostly inbound traffic blocked by ISP routers for regular people.
20 FTP data (File Transfer Protocol)
21 FTP (File Transfer Protocol)
22 SSH (Secure Shell)
23 Telnet
25 SMTP (Send Mail Transfer Protocol)
43 whois
53 DNS (Domain Name Service)
68 DHCP (Dynamic Host Configuration Protocol)
79 Finger
80 HTTP (HyperText Transfer Protocol)
110 POP3 (Post Office Protocol, version 3)
115 SFTP (Secure File Transfer Protocol)
119 NNTP (Network News Transfer Protocol)
123 NTP (Network Time Protocol)
137 NetBIOS-ns
138 NetBIOS-dgm
139 NetBIOS
143 IMAP (Internet Message Access Protocol)
161 SNMP (Simple Network Management Protocol)
194 IRC (Internet Relay Chat)
220 IMAP3 (Internet Message Access Protocol 3)
389 LDAP (Lightweight Directory Access Protocol)
443 SSL (Secure Socket Layer)
445 SMB (NetBIOS over TCP)
666 Doom
993 SIMAP (Secure Internet Message Access Protocol)
995 SPOP (Secure Post Office Protocol)
Ports between 1024 and 29151 are known as the Registered Ports. Basically, programs are supposed to register their use of these ports and thereby try to be careful and avoid stomping on each other. Here are some common ports and their programs.
1243 SubSeven (Trojan - security risk!)
1352 Lotus Notes
1433 Microsoft SQL Server
1494 Citrix ICA Protocol
1521 Oracle SQL
1604 Citrix ICA / Microsoft Terminal Server
2049 NFS (Network File System)
3306 mySQL
4000 ICQ
5010 Yahoo! Messenger
5190 AOL Instant Messenger
5632 PCAnywhere
5800 VNC
5900 VNC
6000 X Windowing System
6699 Napster
6776 SubSeven (Trojan - security risk!)
7070 RealServer / QuickTime
7778 Unreal
8080 HTTP
26000 Quake
27010 Half-Life
27960 Quake III
31337 BackOrifice (Trojan - security risk!)

PHP Date Formats

Name Format Example
Unix timestamp Numeric timestamp 1259236934
MySQL Y-m-d H:i:s 2009-11-26 06:02:00
English Y/d/m H:i 2009/26/11 06:02:00
Finnish d.m.Y H:i 26.11.2009 06:02

ASCII table

Decimal   Octal   Hex    Binary     Value
-------   -----   ---    ------     -----
  000      000    000   00000000      NUL    (Null char.)
  001      001    001   00000001      SOH    (Start of Header)
  002      002    002   00000010      STX    (Start of Text)
  003      003    003   00000011      ETX    (End of Text)
  004      004    004   00000100      EOT    (End of Transmission)
  005      005    005   00000101      ENQ    (Enquiry)
  006      006    006   00000110      ACK    (Acknowledgment)
  007      007    007   00000111      BEL    (Bell)
  008      010    008   00001000       BS    (Backspace)
  009      011    009   00001001       HT    (Horizontal Tab)
  010      012    00A   00001010       LF    (Line Feed)
  011      013    00B   00001011       VT    (Vertical Tab)
  012      014    00C   00001100       FF    (Form Feed)
  013      015    00D   00001101       CR    (Carriage Return)
  014      016    00E   00001110       SO    (Shift Out)
  015      017    00F   00001111       SI    (Shift In)
  016      020    010   00010000      DLE    (Data Link Escape)
  017      021    011   00010001      DC1 (XON) (Device Control 1)
  018      022    012   00010010      DC2       (Device Control 2)
  019      023    013   00010011      DC3 (XOFF)(Device Control 3)
  020      024    014   00010100      DC4       (Device Control 4)
  021      025    015   00010101      NAK    (Negative Acknowledgement)
  022      026    016   00010110      SYN    (Synchronous Idle)
  023      027    017   00010111      ETB    (End of Trans. Block)
  024      030    018   00011000      CAN    (Cancel)
  025      031    019   00011001       EM    (End of Medium)
  026      032    01A   00011010      SUB    (Substitute)
  027      033    01B   00011011      ESC    (Escape)
  028      034    01C   00011100       FS    (File Separator)
  029      035    01D   00011101       GS    (Group Separator)
  030      036    01E   00011110       RS    (Request to Send)(Record Separator)
  031      037    01F   00011111       US    (Unit Separator)
  032      040    020   00100000       SP    (Space)
  033      041    021   00100001        !    (exclamation mark)
  034      042    022   00100010        "    (double quote)
  035      043    023   00100011        #    (number sign)
  036      044    024   00100100        $    (dollar sign)
  037      045    025   00100101        %    (percent)
  038      046    026   00100110        &    (ampersand)
  039      047    027   00100111        '    (single quote)
  040      050    028   00101000        (    (left/opening parenthesis)
  041      051    029   00101001        )    (right/closing parenthesis)
  042      052    02A   00101010        *    (asterisk)
  043      053    02B   00101011        +    (plus)
  044      054    02C   00101100        ,    (comma)
  045      055    02D   00101101        -    (minus or dash)
  046      056    02E   00101110        .    (dot)
  047      057    02F   00101111        /    (forward slash)
  048      060    030   00110000        0
  049      061    031   00110001        1
  050      062    032   00110010        2
  051      063    033   00110011        3
  052      064    034   00110100        4
  053      065    035   00110101        5
  054      066    036   00110110        6
  055      067    037   00110111        7
  056      070    038   00111000        8
  057      071    039   00111001        9
  058      072    03A   00111010        :    (colon)
  059      073    03B   00111011        ;    (semi-colon)
  060      074    03C   00111100        <    (less than)
  061      075    03D   00111101        =    (equal sign)
  062      076    03E   00111110        >    (greater than)
  063      077    03F   00111111        ?    (question mark)
  064      100    040   01000000        @    (AT symbol)
  065      101    041   01000001        A
  066      102    042   01000010        B
  067      103    043   01000011        C
  068      104    044   01000100        D
  069      105    045   01000101        E
  070      106    046   01000110        F
  071      107    047   01000111        G
  072      110    048   01001000        H
  073      111    049   01001001        I
  074      112    04A   01001010        J
  075      113    04B   01001011        K
  076      114    04C   01001100        L
  077      115    04D   01001101        M
  078      116    04E   01001110        N
  079      117    04F   01001111        O
  080      120    050   01010000        P
  081      121    051   01010001        Q
  082      122    052   01010010        R
  083      123    053   01010011        S
  084      124    054   01010100        T
  085      125    055   01010101        U
  086      126    056   01010110        V
  087      127    057   01010111        W
  088      130    058   01011000        X
  089      131    059   01011001        Y
  090      132    05A   01011010        Z
  091      133    05B   01011011        [    (left/opening bracket)
  092      134    05C   01011100        \    (backslash)
  093      135    05D   01011101        ]    (right/closing bracket)
  094      136    05E   01011110        ^    (caret/cirumflex)
  095      137    05F   01011111        _    (underscore)
  096      140    060   01100000        `
  097      141    061   01100001        a
  098      142    062   01100010        b
  099      143    063   01100011        c
  100      144    064   01100100        d
  101      145    065   01100101        e
  102      146    066   01100110        f
  103      147    067   01100111        g
  104      150    068   01101000        h
  105      151    069   01101001        i
  106      152    06A   01101010        j
  107      153    06B   01101011        k
  108      154    06C   01101100        l
  109      155    06D   01101101        m
  110      156    06E   01101110        n
  111      157    06F   01101111        o
  112      160    070   01110000        p
  113      161    071   01110001        q
  114      162    072   01110010        r
  115      163    073   01110011        s
  116      164    074   01110100        t
  117      165    075   01110101        u
  118      166    076   01110110        v
  119      167    077   01110111        w
  120      170    078   01111000        x
  121      171    079   01111001        y
  122      172    07A   01111010        z
  123      173    07B   01111011        {    (left/opening brace)
  124      174    07C   01111100        |    (vertical bar)
  125      175    07D   01111101        }    (right/closing brace)
  126      176    07E   01111110        ~    (tilde)
  127      177    07F   01111111      DEL    (delete)

Hex table

HexBinaryDecimal
0x000000
0x100011
0x200102
0x300113
0x401004
0x501015
0x601106
0x701117
0x810008
0x910019
0xA101010
0xB101111
0xC110012
0xD110113
0xE111014
0xF111115
Operation Name Description
A & B And Bits that are set in both A and B are set.
A | B Or Bits that are set in either A or B are set.
A ^ B Xor Bits that are set in A or B but not both are set.
~ A Not Bits that are set in A are not set, and vice versa.
A << B Shift left Shift the bits of A B steps to the left (each step multiplies by 2)
A >> B Shift right Shift the bits of A B steps to the right (each step divides by 2)

Web Notes

Colour System

COLOUR SYSTEM

h = Hex
d = Dec

    R   G   B
------------------
RED
h   ff  00  00
d   255 0   0

GREEN
h   00  ff  00
d   0   255 0

BLUE
h   00  00  ff
d   0   0   255

BLACK (NONE)
h   00  00  00
d   0   0   0

WHITE (FULL RED, GREEN, BLUE)
h   ff  ff  ff
d   255 255 255

YELLOW (RED + GREEN)
h   ff  ff  00
d   255 255 0

BROWN (HALF RED)
h   80  00  00
d   128 0   0

PURPLE (FULL RED, 1/4 GREEN, FULL BLUE)
h   ff  40  ff
d   255 64  255
  

Web Core Fonts

- Andale Mono
- Arial
- Comic Sans MS
- Courier New 
- Georgia
- Impact
- Times New Roman
- Trebuchet MS 
- Verdana
- Webdings
  

Doctypes that work

HTML 4.01 Strict, Transitional, Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.0 Strict, Transitional, Frameset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1 DTD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  

CSS Reference

CSS Links

Quickjump

Browser support: IE: Internet Explorer, M: Mac IE only, F: Firefox, N: Netscape.

W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2).

Background

Property Description Values IE F N W3C
background A shorthand property for setting all background properties in one declaration background-color
background-image
background-repeat background-attachment background-position
4 1 6 1
background-attachment Sets whether a background image is fixed or scrolls with the rest of the page scroll
fixed
4 1 6 1
background-color Sets the background color of an element color-rgb
color-hex
color-name
transparent
4 1 4 1
background-image Sets an image as the background url(URL)
none
4 1 4 1
background-position Sets the starting position of a background image top left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
4 1 6 1
background-repeat Sets if/how a background image will be repeated repeat
repeat-x
repeat-y
no-repeat
4 1 4 1

Border

Property Description Values IE F N W3C
border A shorthand property for setting all of the properties for the four borders in one declaration border-width
border-style
border-color
4 1 4 1
border-bottom A shorthand property for setting all of the properties for the bottom border in one declaration border-bottom-width
border-style
border-color
4 1 6 1
border-bottom-color Sets the color of the bottom border border-color 4 1 6 2
border-bottom-style Sets the style of the bottom border border-style 4 1 6 2
border-bottom-width Sets the width of the bottom border thin
medium
thick
length
4 1 4 1
border-color Sets the color of the four borders, can have from one to four colors color 4 1 6 1
border-left A shorthand property for setting all of the properties for the left border in one declaration border-left-width
border-style
border-color
4 1 6 1
border-left-color Sets the color of the left border border-color 4 1 6 2
border-left-style Sets the style of the left border border-style 4 1 6 2
border-left-width Sets the width of the left border thin
medium
thick
length
4 1 4 1
border-right A shorthand property for setting all of the properties for the right border in one declaration border-right-width
border-style
border-color
4 1 6 1
border-right-color Sets the color of the right border border-color 4 1 6 2
border-right-style Sets the style of the right border border-style 4 1 6 2
border-right-width Sets the width of the right border thin
medium
thick
length
4 1 4 1
border-style Sets the style of the four borders, can have from one to four styles none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
4 1 6 1
border-top A shorthand property for setting all of the properties for the top border in one declaration border-top-width
border-style
border-color
4 1 6 1
border-top-color Sets the color of the top border border-color 4 1 6 2
border-top-style Sets the style of the top border border-style 4 1 6 2
border-top-width Sets the width of the top border thin
medium
thick
length
4 1 4 1
border-width A shorthand property for setting the width of the four borders in one declaration, can have from one to four values thin
medium
thick
length
4 1 4 1

Classification

Property Description Values IE F N W3C
clear Sets the sides of an element where other floating elements are not allowed left
right
both
none
4 1 4 1
cursor Specifies the type of cursor to be displayed url
auto
crosshair
default
pointer
move
e-resize
ne-resize
nw-resize
n-resize
se-resize
sw-resize
s-resize
w-resize
text
wait
help
4 1 6 2
display Sets how/if an element is displayed none
inline
block
list-item
run-in
compact
marker
table
inline-table
table-row-group
table-header-group
table-footer-group
table-row
table-column-group
table-column
table-cell
table-caption
4 1 4 1
float Sets where an image or a text will appear in another element left
right
none
4 1 4 1
position Places an element in a static, relative, absolute or fixed position static
relative
absolute
fixed
4 1 4 2
visibility Sets if an element should be visible or invisible visible
hidden
collapse
4 1 6 2

Dimension

Property Description Values IE F N W3C
height Sets the height of an element auto
length
%
4 1 6 1
line-height Sets the distance between lines normal
number
length
%
4 1 4 1
max-height Sets the maximum height of an element none
length
%
- 1 6 2
max-width Sets the maximum width of an element none
length
%
- 1 6 2
min-height Sets the minimum height of an element length
%
- 1 6 2
min-width Sets the minimum width of an element length
%
- 1 6 2
width Sets the width of an element auto
%
length
  
4 1 4 1

Font

Property Description Values IE F N W3C
font
A shorthand property for setting all of the properties for a font in one declaration font-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar
4 1 4 1
font-family
A prioritized list of font family names and/or generic family names for an element family-name
generic-family
3 1 4 1
font-size
Sets the size of a font xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger
length
%
3 1 4 1
font-size-adjust Specifies an aspect value for an element that will preserve the x-height of the first-choice font none
number
- - - 2
font-stretch Condenses or expands the current font-family normal
wider
narrower
ultra-condensed
extra-condensed
condensed
semi-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded
- - - 2
font-style
Sets the style of the font normal
italic
oblique
4 1 4 1
font-variant
Displays text in a small-caps font or a normal font normal
small-caps
4 1 6 1
font-weight
Sets the weight of a font normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
4 1 4 1

Generated Content

Property Description Values IE F N W3C
content Generates content in a document. Used with the :before and :after pseudo-elements string
url
counter(name)
counter(name, list-style-type)
counters(name, string)
counters(name, string, list-style-type)
attr(X)
open-quote
close-quote
no-open-quote
no-close-quote
  1 6 2
counter-increment Sets how much the counter increments on each occurrence of a selector  none
identifier number
      2
counter-reset Sets the value the counter is set to on each occurrence of a selector none
identifier number
      2
quotes Sets the type of quotation marks none
string string
- 1 6 2

List and Marker

Property Description Values IE F N W3C
list-style A shorthand property for setting all of the properties for a list in one declaration list-style-type
list-style-position
list-style-image
4 1 6 1
list-style-image Sets an image as the list-item marker none
url
4 1 6 1
list-style-position Sets where the list-item marker is placed in the list inside
outside
4 1 6 1
list-style-type Sets the type of the list-item marker none
disc
circle
square
decimal
decimal-leading-zero
lower-roman
upper-roman
lower-alpha
upper-alpha
lower-greek
lower-latin
upper-latin
hebrew
armenian
georgian
cjk-ideographic
hiragana
katakana
hiragana-iroha
katakana-iroha 
4 1 4 1
marker-offset   auto
length
  1 7 2

Margin

Property Description Values IE F N W3C
margin A shorthand property for setting the margin properties in one declaration margin-top
margin-right
margin-bottom
margin-left
4 1 4 1

margin-bottom

Sets the bottom margin of an element auto
length
%
4 1 4 1

margin-left

Sets the left margin of an element auto
length
%
3 1 4 1

margin-right

Sets the right margin of an element auto
length
%
3 1 4 1
margin-top Sets the top margin of an element auto
length
%
3 1 4 1

Outlines

Property Description Values IE F N W3C
outline A shorthand property for setting all the outline properties in one declaration outline-color
outline-style
outline-width
- 1.5 - 2
outline-color Sets the color of the outline around an element color
invert
- 1.5 - 2
outline-style Sets the style of the outline around an element none
dotted
dashed
solid
double
groove
ridge
inset
outset
- 1.5 - 2
outline-width Sets the width of the outline around an element thin
medium
thick
length
- 1.5 - 2

Padding

Property Description Values IE F N W3C
padding A shorthand property for setting all of  the padding properties in one declaration padding-top
padding-right
padding-bottom
padding-left
4 1 4 1

padding-bottom

Sets the bottom padding of an element length
%
4 1 4 1

padding-left

Sets the left padding of an element length
%
4 1 4 1

padding-right

Sets the right padding of an element length
%
4 1 4 1
padding-top Sets the top padding of an element length
%
4 1 4 1

Positioning

Property Description Values IE F N W3C
bottom Sets how far the bottom edge of an element is above/below the bottom edge of the parent element auto
%
length
5 1 6 2
clip Sets the shape of an element. The element is clipped into this shape, and displayed shape
auto
4 1 6 2
left Sets how far the left edge of an element is to the right/left of the left edge of the parent element auto
%
length
4 1 4 2
overflow
Sets what happens if the content of an element overflow its area visible
hidden
scroll
auto
4 1 6 2
position Places an element in a static, relative, absolute or fixed position static
relative
absolute
fixed
4 1 4 2
right Sets how far the right edge of an element is to the left/right of the right edge of the parent element auto
%
length
5 1 6 2
top Sets how far the top edge of an element is above/below the top edge of the parent element auto
%
length
4 1 4 2
vertical-align Sets the vertical alignment of an element baseline
sub
super
top
text-top
middle
bottom
text-bottom
length
%
4 1 4 1
z-index Sets the stack order of an element auto
number
4 1 6 2

Table

Property Description Values IE F N W3C
border-collapse Sets whether the table borders are collapsed into a single border or detached as in standard HTML collapse
separate
5 1 7 2
border-spacing Sets the distance that separates cell borders (only for the "separated borders" model) length length 5M 1 6 2
caption-side Sets the position of the table caption top
bottom
left
right
5M 1 6 2
empty-cells Sets whether or not to show empty cells in a table (only for the "separated borders" model)  show
hide
5M 1 6 2
table-layout Sets the algorithm used to display the table cells, rows, and columns auto
fixed
5 1 6 2

Text

Property Description Values IE F N W3C
color Sets the color of a text color 3 1 4 1
direction Sets the text direction ltr
rtl
6 1 6 2
line-height Sets the distance between lines normal
number
length
%
4 1 4 1
letter-spacing Increase or decrease the space between characters normal
length
4 1 6 1
text-align Aligns the text in an element left
right
center
justify
4 1 4 1
text-decoration Adds decoration to text none
underline
overline
line-through
blink
4 1 4 1
text-indent Indents the first line of text in an element length
%
4 1 4 1
text-shadow   none
color
length
       
text-transform Controls the letters in an element none
capitalize
uppercase
lowercase
4 1 4 1
unicode-bidi   normal
embed
bidi-override
5     2
white-space Sets how white space inside an element is handled normal
pre
nowrap
5 1 4 1
word-spacing Increase or decrease the space between words normal
length
6 1 6 1

Pseudo-classes

Pseudo-class Purpose IE F N W3C
:active Adds special style to an activated element 4 1 8 1
:focus Adds special style to an element while the element has focus - 1.5 8 2
:hover Adds special style to an element when you mouse over  it 4 1 7 1
:link Adds special style to an unvisited link 3 1 4 1
:visited Adds special style to a visited link 3 1 4 1
:first-child Adds special style to an element that is the first child of some other element - 1 7 2
:lang Allows the author to specify a language to use in a specified element - 1 8 2

Pseudo-elements

Pseudo-element Purpose IE F N W3C
:first-letter Adds special style to the first letter of a text 5 1 8 1
:first-line Adds special style to the first line of a text 5 1 8 1
:before Inserts some content before an element   1.5 8 2
:after Inserts some content after an element   1.5 8 2

Binary Permutations (2^x)

01        2
02        4
03        8
04       16
05       32
06       64
07      128
08      256

09      512
10     1024
11     2048
12     4096
13     8192
14    16384
15    32768
16    65536