-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
29 lines (25 loc) · 871 Bytes
/
style.css
File metadata and controls
29 lines (25 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* This is a css comment. The following block selects all paragraph elements... */
p {
/* changes their fonts to Arial... */
font-family:"Arial";
/* and changes the text color to purpleish. In css, colors are given in hex (indicated by the #). The convention is RRGGBB. For each color, 00 is min and ff is max. */
color: #aa00aa;
}
/* The hastag denotes id, so this line selects the one element with the red-background id */
#red-background {
/* full red, no other colors */
background-color: #ff0000;
}
/* The . denotes class, so this line selects all elements with the middle-child class */
.underline {
/* Let's underline the middle ones */
text-decoration: underline;
}
/* list elements and paragraphs default to display block. Uncomment these lines to see how it affects the presentation of the markup.
li {
display: inline;
}
p {
display: inline;
}
*/