Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Responsive Resized Image in a Web Page</title>
<style>
* {
box-sizing: border-box;
}
html {
font-family: "Lucida Sans", sans-serif;
}
img {
width: 100%;
height: auto;
}
.row:after {
content: "";
clear: both;
display: table;
}
.menu, .content {
float: left;
padding: 15px;
width: 100%;
}
@media only screen and (min-width: 600px) {
.menu {width: 25%;}
.content {width: 75%;}
}
@media only screen and (min-width: 768px) {
.menu {width: 20%;}
.content {width: 79%;}
}
.header {
background-color: #1c87c9;
color: #ffffff;