Appendix A Css Property Reference
Appendix A Css Property Reference
2. LENGTHS/SIZES
3. KEYWORDS 4. URLS
B.
RGB Values
1. HEX = color: #ff0033;
2. RGB % = rgb(100%, 0%, 33%)
3. DECIMAL = RGB(255, 0, 33)
Pixels
Ems
%
url(www.rughbnz.com/images/jk.jpg)
2. Root Relative =
url(/images/jk.jpg)
(../ = UP 1 LEVEL)
-----------------------------------------------------------------------------------------
TEXT PROPERTIES
1.
COLOR
(I)
2.
FONT
(I)
a. Keyword
b. Hex (#fff)
font1.
family:
(I)
- Separate by ,
- If 2 worded = surround in
2.
size:
(I)
3.
style: (I)
4.
variant:
(I)
= small-caps, normal
5.
weight:
(I)
= bold, normal
-----------------------------------------------------------------------------------------
letter-spacing:
(I)
= (+/-)
1. em
line-height:
2. px
1. em 2. px 3. %
----------------------------------------------------------------------------------------text1.
-align:
2.
-decoration:
3.
-indent:
(I) = (+/-)
4.
-transform:
a. em b. px
----------------------------------------------------------------------------------------*
vertical -align:
white-space:
word-spacing:
----------------------------------------------------------------------------------------LIST PROPERTIES
list-style:
(I)
a. list-style-type:
=>
= Shorthand for
b. list-style-image:
c. list-style-position:
1.
-image:
(I)
= a. url( ) b. none
2.
-position:
(I)
a. inside
(b/g-image: = better)
b. outside ( default)
3.
-type:
(I)
border:
2nd = L&R
= ems, px
= shorthand for
- outline-colour/style/width:
-width:
----------------------------------------------------------------------------------------padding: -To add space around: text, images, etc (1 or 4 Values)
-top / -right / -bottom / -left:
----------------------------------------------------------------------------------------margin:
-color:
-image:
= url(images/jk.jpg)
-repeat:
-attachment:
= scroll, fixed
-position:
----------------------------------------------------------------------------------------PAGE LAYOUT
*
= px, em, %
display:
float:
height:
width:
----------------------------------------------------------------------------------------HEIGHT/WIDTH
*min/max-height/width:
max-height:
min-height:
max-width:
min-width:
overflow:
----------------------------------------------------------------------------------------POSITION
position:
= (+/-)
----------------------------------------------------------------------------------------TABLES
border-collapse:
= collapse, separate
- only works when applied to <table> Tag
border-spacing:
= auto, fixed
----------------------------------------------------------------------------------------MISC.
content:
cursor:
*orphans:
= 1, 2, 3 - Only B = Opera
page-break-before/after:
*page-break-inside:
= avoid
= Only Opera
*widows
= 1, 2, 3 only Opera
-----------------------------------------------------------------------------------------