Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views4 pages

Untitled Document-3

Untitled document-3

Uploaded by

abcghixyz45
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Untitled Document-3

Untitled document-3

Uploaded by

abcghixyz45
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Responsive</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: rgb(236, 160, 21);
}
#heading{
background-color: rgb(21, 78, 113);
color: white;
text-align: center;
padding: 20px;
}
.a1{
background-color: black;
display: flex;
flex: content;
flex-direction: row;
flex-wrap: wrap;
text-align: center;
}
.a1 a{
color: white;
flex-direction: row;
flex: content;
align-content: center;
padding: 15px;
}
.a1 a:hover{
background-color: #0f70cb;

}
.a1 a{
text-decoration: none;
}
.container{
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 50px;
}
.box{
font-size: 2em;
background-color: white;
height: 100px;
width: 300px;
text-align: center;
border-radius: 5px;
padding: 25px;
}
#last{
background-color:black;
color: white;
text-align: center;
padding: 20px;
bottom: 0;
left: 0;
position: fixed;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1 id="heading">My Responsive Website</h1>
<nav class="a1">
<a href="#home">Home</a>
<a href="#About">About</a>
<a href="#services">services</a>
<a href="#Contact">Contact</a>
</nav>
</header>
<div class="container">
<div class="box" id="box1">Div1</div>
<div class="box" id="box2">Div2</div>
<div class="box" id="box3">Div3</div>
</div>
<footer id="last">
&copy; 2024 My Responsive Website
</footer>
</body>
</html>

You might also like