-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoxModelProject.html
More file actions
67 lines (62 loc) · 2.13 KB
/
BoxModelProject.html
File metadata and controls
67 lines (62 loc) · 2.13 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
<!--
TODO: Create a motivational post website.
Style it how ever you like.
Look at the goal image for inspiration.
But it must have the following features:
1. The main h1 text should be using the Regular Libre Baskerville Font from Google Fonts:
https://fonts.google.com/specimen/Libre+Baskerville
2. The text should be white and background black.
3. Add your own image into the images folder inside assets. It should have a 5px white border.
4. The text should be center aligned.
5. Create a div to contain the h1, p and img elements. Adjust the margins so that the image and text are centered on the page.
Hint: You horizontally center a div by giving it a width of 50% and a margin-left of 25%.
Hint: Set the image to have a width of 100% so it fills the div.
6. Read about the text-transform property on MDN docs to make the h1 uppercase with CSS.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform
-->
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<style>
body{
background-color:black;
}
.main{
padding:100px;
}
.image{
border:5px solid white;
width:590px;
height:400px;
align:center;
margin-left:480px;
}
.text{
color:white;
text-align:center;
}
</style>
</head>
<body>
<div class="main">
<div class="image">
<img src="https://i.pinimg.com/564x/4b/7c/db/4b7cdb2f93b1bc715eff51ba030ad21d.jpg">
</div>
<div class="text">
<h1>THAT SPECIAL MOMENT</h1>
<p>when you find your perfect goal</p>
</div>
</div>
<script src="" async defer></script>
</body>
</html>