-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcssuse.html
More file actions
91 lines (90 loc) · 1.5 KB
/
cssuse.html
File metadata and controls
91 lines (90 loc) · 1.5 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Using CSS</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
}
/*p{
color: red;
font-size: 200%;
}
h1{
color: green;
}*/
.big{
color: blue;
}
#graan{
color: green;
text-decoration: underline;
}
#setu{
color: blue;
background: pink;
width: 50%;
z-index: 1;
margin-left: 100px;
padding: 10px;
font-family: fantasy;
}
.testr{
clear: both;
background: blue;
width: 50%;
z-index: 2;
opacity: .5;
font-weight: bold;
font-style: italic;
}
#reds{
background: red;
}
#blues{
background: blue;
}
#greens{
background: green;
}
.square{
width: 100px;
height: 100px;
position: relative;
float: left;
margin: 50px;
border: 10px yellow dashed;
}
h2:hover{
font-style:italic;
color: green;
}
a{
text-decoration: none;
color: blue;
}
a:hover{
text-decoration: underline;
color: green;
}
a:visited{
color: red;
}
</style>
</head>
<body>
<marquee attribute_name = "attribute_value">
One or more lines or text message or image
</marquee>
<div id="setu"> <h1>Aalll izzz welll</h1>
<p>Trying to use css</p></div>
<p class="big">oho ho ho.<span id="graan">whatever it takes</span> </p>
<p class="testr">hey there</p>
<div id="reds" class="square"></div>
<div id="blues" class="square"></div>
<div id="greens" class="square"></div>
<h2>i test</h2>
<a href="https://www.google.com/" target="_blank">Google</a>
</body>
</html>