Skip to content

Commit f9ac448

Browse files
committed
CSS Practice Project
1 parent b3fdf9c commit f9ac448

File tree

5 files changed

+112
-0
lines changed

5 files changed

+112
-0
lines changed

Project-CSSAssessment-6/Output.png

1.3 MB
Loading
1.24 MB
Loading
1.97 KB
Loading

Project-CSSAssessment-6/index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="style.css">
8+
<title>CSS-Assessment-06</title>
9+
</head>
10+
<body>
11+
<nav>
12+
<img src="images/white-logo.png" alt="White Logo" />
13+
<ul class="list-items">
14+
<li class="list-item">Home</li>
15+
<li class="list-item">Pricing</li>
16+
<li class="list-item">Contact</li>
17+
<li class="list-item">Terms and Conditions</li>
18+
<button>Get Started</button>
19+
</ul>
20+
</nav>
21+
<main>
22+
<div class="section-main">
23+
<h1 class="left">Your Justice Is <span>Our Top Priority</span></h1>
24+
<p class="right">As a state of law, maintaining justice is something that every citizen must pay attention to, and we are here to upload justice for you.</p>
25+
</div>
26+
<div>
27+
<img src="images/banner.png" alt="Banner"/>
28+
</div>
29+
</main>
30+
31+
</body>
32+
</html>

Project-CSSAssessment-6/style.css

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
font-family: sans-serif;
6+
}
7+
body {
8+
max-width: 1440px;
9+
background-color: #302d27;
10+
margin: auto;
11+
margin-top: 1%;
12+
overflow: hidden;
13+
}
14+
nav {
15+
display: flex;
16+
margin-top: -10px;
17+
padding: 30px 250px;
18+
}
19+
.list-items {
20+
display: flex;
21+
gap: 30px;
22+
margin-top: 20px;
23+
padding-left: 200px;
24+
list-style: none;
25+
color: #a09d9d;
26+
}
27+
.list-item:link,
28+
.list-item:visited {
29+
list-style: none;
30+
text-decoration:none;
31+
}
32+
.list-item:hover,
33+
.list-item:active {
34+
color: #fff;
35+
cursor: pointer;
36+
}
37+
.list-items button {
38+
padding: 5px 10px;
39+
border-radius: 5px;
40+
border: 1px solid #c4900c;
41+
color: #c4900c;
42+
background-color: transparent;
43+
margin-top: -10px;
44+
}
45+
.section-main{
46+
margin-top: -40px;
47+
display:grid;
48+
grid-template-columns: 1fr 1fr;
49+
grid-template-rows: 250px 250px;
50+
align-items: center;
51+
justify-content: space-between;
52+
}
53+
.left {
54+
font-size: 50px;
55+
font-weight: 900;
56+
font-display: 10;
57+
margin-left: 250px;
58+
color: #ffffff;
59+
}
60+
.left span {
61+
font-size: 50px;
62+
font-weight: 900;
63+
font-display: 10;
64+
width: 722px;
65+
margin-left: 0px;
66+
color: #ffffff;
67+
}
68+
.right{
69+
font-size: 1rem;
70+
padding-left: 30px;
71+
line-height: 1.5;
72+
color: #dedcdc;
73+
margin-right: 300px;
74+
}
75+
div img {
76+
margin-top: -250px;
77+
height: 90%;
78+
width: 80%;
79+
padding-left: 250px;
80+
}

0 commit comments

Comments
 (0)