-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
88 lines (69 loc) · 1.73 KB
/
index.css
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
tag_name -> select by tag (applies style to all mentioned tags in the document)
# -> is an id selector
. -> is a class selector.
Note: same classes are generally asscoitated with multiple tags to apply same style on all such tags
There can be multiple class assciated with a single tag (separated by space) to apply multiple group of styles on it
*/
body {
background-image: url(background.jpg);
}
#title{
margin-bottom: 0px;
}
.inline{
display: inline;
margin-top: 0px;
}
#my-photo {
float: left;
margin-left: 1em;
margin-bottom: 0.5em;
margin-right: 2em; /* em is the width of character m in current font and size*/
}
body{
font-family: Arial, Helvetica, sans-serif;
font-size: large;
} /* default font family for entire body (in the order of decreasing preference)*/
.contact{
margin-top: 1em;
margin-bottom: 5px;
font-size: medium;
font-weight: bold;
color: red;
}
a{ /* applies to all 'a' tags */
font-family: monospace;
font-size: large ;
}
/* style when hover mouse over a link */
a:hover{background-color: lightgreen;}
#intro{
display: flex;
flex-wrap: wrap;
margin: 5px;
padding-right: 10px;
text-align: justify;
}
ul > li{
text-align: justify;
}
.shout{
color: red;
}
.loud{
font-family: 'Courier New';
text-transform: uppercase;
}
/* display all borders for table */
table, th, td{
padding: 10px;
font-size: medium;
border-color: black;
border-width: 2px;
border-style: solid;
border-collapse: collapse;
}
th { color: red; }
td:first-child{color: blue;} /* applies to first column in the table */
/* tr:nth-child(2){color: magenta;} /* applies to second row */