Web Assign
Web Assign
→static
→relative
→absolute
→fixed
→scale
transform: scale(0.5);
→rotate
transform: rotate(-2deg);
→skew
→block
→inline
→flex
→grid
→none etc.
→disc
→circle
→square
→none
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
background: #f0f0f0;
header {
background: #4CAF50;
color: white;
padding: 20px;
text-align: center;
nav {
background: #333;
color: white;
padding: 10px;
nav ul {
margin: 0;
padding: 0;
list-style-type: none;
display: flex;
justify-content: center;
nav ul li {
margin: 0 15px;
nav ul li a {
color: white;
text-decoration: none;
.container {
width: 80%;
padding: 20px;
background: white;
position: static;
.box1 {
float: left;
width: 40%;
height: 100px;
margin: 3%;
padding: 20px;
background: #ffcccb;
color: #333;
transform: rotate(-2deg);
.box2 {
float: right;
width: 40%;
height: 100px;
margin: 3%;
padding: 20px;
background: #ffcccb;
color: #333;
transform: rotate(2deg);
footer {
clear: both;
background: #222;
color: white;
padding: 20px;
text-align: center;
position: fixed;
width: 100%;
</style>
</head>
<body>
<header>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="container">
<div class="box1">
<h2>Box 1</h2>
</div>
<div class="box2">
<h2>Box 2</h2>
</div>
</div>
<footer>
2025 My Website
</footer>
</body>
</html>
Output: