-
Notifications
You must be signed in to change notification settings - Fork 0
/
div.html
63 lines (47 loc) · 1.85 KB
/
div.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Div testing</title>
</head>
<body>
<h1>Div testing</h1>
<div class="class" id="a">Home</div> <!--So these are the div which each print test on the web page -->
<div class="class" id="b">About Mars</div> <!-- when i put class equals content it makes them all abide by the class i set in the css class below-->
<div class="class" id="c">Contact</div> <!--when I put ID it gives the ability to style certain things individually-->
<div class="class" id="d">About Mars Migration</div>
<p>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>
g<br>g</b>g<br>g</b>g<br>g</b>g<br>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>
g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>gv<br>g</b>g<br>g</b>gv<br>g</b>
<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>
g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>
<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b>g<br>g</b></p>
<style>
div.class{
height: 35px;
width: 100px;
border: 5px solid;
border-color: black;
float:left;
margin: 5px;
}
div#a{
background-color: red;
}
div#b{
background-color: blue;
}
div#c{
background-color: red;
}
div#d{
background-color: blue;
}
body{
background-color: white;
}
</style>
</body>
</html>