-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
96 lines (94 loc) · 1.73 KB
/
main.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
88
89
90
91
92
93
94
95
96
/*
Hella sidan background-färge lightslategrey
*******************************************
Jag anger body färge för azure
*************************************
Jag anger font-family för sans-serif
*************************************
Jag flyttar huvudrubrik till center
*************************************
Jag anger div1-id billy:
border: 1px solid purple;
padding: 5px;
margin: 10px;
color: darkred;
border-radius: 10px;
*************************************
Jag anger div2- id bob:
border: 1px solid purple;
padding: 5px;
margin: 10px;
color: darkgreen;
text-align: justify;
border-radius: 10px;
*************************************
Ett p-element som är
närmaste efetföljande syskon
till ett element som har klassen
two och i sin tur är barn till
id= bob
*************************************
Ett p-element som är
närmaste efetföljande syskon
till ett element som har klassen
three och i sin tur är barn till
id= billy
*************************************
*/
html
{
background-color: lightslategrey;
}
body
{
background-color: azure;
margin: auto;
width: 500px;
padding-bottom: 0.1px; /*knep för div margin */
font-family: sans-serif;
}
h1
{
text-align: center;
}
#billy
{
border: 1px solid purple;
padding: 5px;
margin: 10px;
color: darkred;
border-radius: 10px;
}
#bob
{
border: 1px solid purple;
padding: 5px;
margin: 10px;
color: darkgreen;
border-radius: 10px;
}
#bob > .two + p + p
{
font-size: larger;
}
.three
{
font-size: smaller;
}
#billy > .three + p
{
font-size: larger;
}
.M
{
background-color: burlywood;
border: 1px solid purple;
padding: 5px;
margin: 10px;
text-align: center;
border-radius: 10px;
}
h2{
color: darkmagenta;
text-align: center;
}