Clean • Professional
Responsive Design is a web design method that makes a website automatically adjust its layout, images, and text according to the screen size.
Responsive Design isn’t just about looks—it’s about usability, accessibility, and ranking. Let’s break it down:
<header>
<h1></h1>
<p></p>
</header>
<section class="features">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</section>body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
background: #0078d7;
color: white;
text-align: center;
padding: 20px;
}
.features {
display: flex;
flex-wrap: wrap;
padding: 20px;
}
.box {
flex: 1 1 300px;
margin: 10px;
padding: 20px;
background: #f4f4f4;
border-radius: 8px;
text-align: center;
font-size: 20px;
}
/* Tablet screen */
@media (max-width: 1024px) {
.box {
flex: 1 1 45%;
}
}
/* Phone screen */
@media (max-width: 600px) {
.box {
flex: 1 1 100%;
font-size: 18px;
}
}
Â