_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
css —
syntax
SYNTAX
element can be:html element #id .class.
To apply to multiple elements:
- element, element
- apply to multiple elements.
- element > element
- applies to descendant.
element {
property: value;
}
attributes
| margin, padding | : can be [margin|padding] or [margin|padding]-[right|left|top|bottom]. |
| border | : border can be defined using border or each border option (border-style, border-width, etc.). |
| border-style | : solid, dotted, dashed, none. |
EXAMPLE
body {
background-color: #262626;
color: #bfbfbf;
font-family: monospace;
}
a {
color: #00b3b3;
}
.head , .foot , .Ndm {
background-color: #1a1a1a;
padding:5px;
margin:5px;
border: solid 1px;
}
pre {
background-color: #1a1a1a;
padding:10px;
margin: 10px;
}
.head-rtitle {
float: right;
}
TODO
- Review and add examples.
SEE ALSO
- example files:
</css/style.css>
links
| - W3schools - css reference |
| - W3schools - color picker |