Responsive Web Page -With CSS Flex Side- Column Code
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="STYLESHEET"type="text/css"href="web.css">
<title>web design</title>
</head>
<body>
<header>
header
</header>
<div class="row">
<div class="column-side"style="background:#aaa;">Coloumn</div>
<div class="column-middle"style="background:#bbb;"> Coloumn</div>
<div class="column-side"style="background:#aaa;">Coloumn</div>
</div>
<footer>Footer</footer>
</body>
</html>
CSS Flex Side- Column
*{
box-sizing: border-box;
}
body{
font-family: Arial, Helvetica, sans-serif;
}
header{
background-color:#f1f1f1;
padding:30px;
text-align: center;
font-size:35px;
}
.row{
display: -webkit-flex;
display: flex;
}
.column{
height:300px;
padding:10px ;
}
.column-side{
-webkit-flex:1;
-ms-flex:1;
flex:1;
}
.column-middle{
-webkit-flex:2;
-ms-flex:2;
flex:2;
}
footer{
background-color: #f1f1f1;
padding:10px;
text-align: center;
}
No comments:
Post a Comment