IT2805/position.html

134 lines
2.0 KiB
HTML
Raw Normal View History

2020-09-02 15:45:54 +02:00
<!DOCTYPE html>
<html>
<head>
<title>IT2805</title>
<style type="text/css">
html, body{
margin: 0;
padding: 0;
height: 100%;
}
/* Part 1 */
.header{
font-family: sans-serif;
padding-top: 30px;
margin-bottom: 40px;
}
.box{
border-width: 2px;
border-color: #0060A3;
border-style: solid;
height: 400px;
2020-09-14 11:27:57 +02:00
margin: 0 25%;
2020-09-02 15:45:54 +02:00
}
.one{
width: 100px;
height: 100px;
border-width: 2px;
border-color: #FAA21B;
border-style: solid;
2020-09-14 11:27:57 +02:00
margin-top: 25px;
margin-left: 25px;
2020-09-02 15:45:54 +02:00
}
.two{
width: 100px;
height: 100px;
border-width: 2px;
border-color: #FAA21B;
border-style: solid;
background-color: #fff;
2020-09-14 11:27:57 +02:00
margin-left: 25px;
position: relative;
top: 145px;
2020-09-02 15:45:54 +02:00
}
.three{
width: 100px;
height: 100px;
border-width: 2px;
border-color: #FAA21B;
border-style: solid;
background-color: #fff;
2020-09-14 11:27:57 +02:00
margin-left: auto;
position: relative;
left: 50px;
bottom: 150px;
2020-09-02 15:45:54 +02:00
}
.five{
bottom: 10px;
font-size: 35px;
font-family: sans-serif;
2020-09-14 11:27:57 +02:00
text-align: right;
margin-right: 25px;
2020-09-02 15:45:54 +02:00
}
.four{
width: 50px;
height: 50px;
border-width: 2px;
border-color: #FAA21B;
border-style: solid;
2020-09-14 11:27:57 +02:00
margin: 25px auto;
2020-09-02 15:45:54 +02:00
}
/* Part 2 */
2020-09-14 11:27:57 +02:00
a {
color:blue;
}
a:hover {
color: cyan;
}
a::selection {
background-color: orange;
}
a:visited {
color: purple;
}
a:visited:hover {
color: green;
}
2020-09-02 15:45:54 +02:00
</style>
</head>
<body>
<div class="header">
<h1>Assignment 3: position</h1>
</div>
<div class="box">
<div class="one"></div>
<div class="two"></div>
<div class="three">
<div class="four"></div>
</div>
<div class="five">
2020-09-14 11:27:57 +02:00
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS is awesome</a>
2020-09-02 15:45:54 +02:00
</div>
</div>
</body>
</html>