Modify the given page “lab9-form.html” so it can be better viewed and used on mobile devices. Make it responsive as well. Summarize the techniques or best practices you have implemented. Here is the code that I have so far: Flexible Grid Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.. Player n Player n Player n Player n Player n Player n Player n Player n
- Modify the given page “lab9-form.html” so it can be better viewed and used on mobile devices. Make it responsive as well. Summarize the techniques or best practices you have implemented.
Here is the code that I have so far:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Flexible Grid</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
div
{
border: 1.5px solid black;
margin: 4px;
}
product {
width: 10%;
float: left;
margin: 0 2% 0 2%;
background: #03a8d2;
border: 2px solid black;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#sidebar
{
width: 27%;
float: left;
}
#main.floatRight
{
width: 70%;
margin: 4 px;
float: right;
}
.product {
width: 16%;
float: left;
margin: 0 2% 20px 2%;
background: #eee;
border: 2px solid #ddd;
padding: 15px;
font-size: 13px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0.05);
}
.product:hover {
border: 2px solid #888;
}
img {
max-width: 100%;
display: block;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<img src="http://www.ksuowls.com/common/controls/image_handler.aspx?thumb_id=0&image_path=/images/2016/8/10/Header_42.png" />
</div>
<div id="sidebar">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<p>.</p></div>
<div id="main">
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div class="product">Player n</div>
<div style="clear: both; border: 0px;"></div>
</div>
</div>
</body>
</html>
Step by step
Solved in 2 steps with 1 images