Site Tools


Hotfix release available: 2026-07-14c "Mort". upgrade now! [57.3] (what's this?)
Hotfix release available: 2026-07-14b "Mort". upgrade now! [57.2] (what's this?)
Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:css_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:css_cheat_sheet [2026/11/03 18:10]
47.79.201.252 old revision restored (2026/09/01 22:01)
notes:css_cheat_sheet [2026/11/04 06:16] (current)
47.79.206.237 old revision restored (2026/09/15 05:56)
Line 54: Line 54:
   * Text properties examples <code html>   * Text properties examples <code html>
 color: #00ff00/green/rgb(0,255,0) ; text-shadow:blue; color: #00ff00/green/rgb(0,255,0) ; text-shadow:blue;
-text-align: center/justify ; text-indent: 1cm;+text-align: left/right/center/justify ; text-indent: 1cm;
 letter-spacing: 0.5cm/-3px ; line-height: 200%; letter-spacing: 0.5cm/-3px ; line-height: 200%;
 white-space: nowrap ; word-spacing: 30px white-space: nowrap ; word-spacing: 30px
Line 67: Line 67:
 font: italic small-caps 900 12px arial font: italic small-caps 900 12px arial
 font: caption/icon/menu/message-box/small-caption/status-bar </code> font: caption/icon/menu/message-box/small-caption/status-bar </code>
 +
 ==== CSS Border/List Properties ==== ==== CSS Border/List Properties ====
   * Border properties examples (btlr=bottom/top/left/right. An outline occurs outside of the border. <code html>   * Border properties examples (btlr=bottom/top/left/right. An outline occurs outside of the border. <code html>
-border-style: medium/solid/double/groove/dotted/dashed/inset/outset;+border-style: medium/solid/double/groove/dotted/ 
 +  dashed/inset/outset;
 border-btlr: width style color ; border-btlr-style border-btlr: width style color ; border-btlr-style
 border-width:5px ; border-btlr-width: thick border-width:5px ; border-btlr-width: thick
Line 88: Line 90:
 border-spacing: width x 2;caption-side: btlr border-spacing: width x 2;caption-side: btlr
 </code> </code>
 +
 +==== Sizing and Positioning CSS Properties ====
 +
 +  * Size properties examples <code html>
 +height/width: auto/50%/100px
 +min/max-height/width:none/50%/100px
 +line-height: normal/100px/1/50%</code>
 +
 +  * Position properties <code html>
 +display: inline/none/block (lots of others)
 +float: btlr ; 
 +position: relative(to normal)/absolute(rel to block)
 +  /fixed(rel to window, doesn't move)/static(normal) ;
 +bottom/top/left/right: +/-100px/width
 +vertical-align:top/bottom/text-top/text-bot/sub/super</code>
 +
 +  * Visibility properties <code html>
 +visibility:visible/hidden/collapse (for table elems)
 +clear:left/right/both/none (where floats aren't allowed)
 +clip: rect(10px, 5px, 10px, 5px)
 +overflow:auto/scroll/visible/hidden
 +z-index: 1 (0 is normal) </code>
 +
 +==== Advanced CSS ====
 +  * Pseudo classes can restrict the selector. a:hover and a:active may have to come after a:link and a:visited. <code html>
 +selector.class:pseudo-class {property: value}
 +a:link {color: #FF0000}   (unvisited link)
 +a:visited {color: #00FF00}  (visited link)
 +a:hover {color: blue}  (mouse-over element)
 +a:active {color: #0000FF} (selected element)
 +a:focus {color: #0000FF} (focused element - not in IE)
 +p:first-child {font-weight:bold}
 +p > em:first-child { } ; p:first-child em { }
 +</code>
 +  * Pseudo elements are dynamic elements <code html>
 +p:first-letter {} ; p:first-line {} ;
 +h1:before {} ; h1:after {} ;</code>
 +  * Misc Properties <code html>
 +opacity:0.4; (for firefox)
 +filter:alpha(opacity=40) (for IE)
 +onmouseover="this.style.opacity=1;
 +  this.filters.alpha.opacity=100"
 +onmouseout="this.style.opacity=0.4;
 +  this.filters.alpha.opacity=40"
 +
 +cursor:deflt/cursor/pointer/move/wait/help/text/crosshair</code>
notes/css_cheat_sheet.1793758216.txt.gz · Last modified: 2026/11/03 18:10 by 47.79.201.252