Hour 19 Code Samples – Sams Teach Yourself Responsive Web Design in 24 Hours

Hour 19 Code Samples – Sams Teach Yourself Responsive Web Design in 24 Hours

Listing 19.1

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="">
<title>Testing Viewport</title>
<style>
html, body, * { margin: 0; }
body { width: 600px; }
</style>
</head>

<body>
<h1>Testing Viewport</h1>
<img src="images/testing-viewport.png">
</body>
</html>

Listing 19.2

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Testing Viewport</title>
<style>
html, body, * { margin: 0; }
body { width: 600px; }
</style>
</head>

<body>
<h1>Testing Viewport</h1>
<img src="images/testing-viewport.png">
</body>
</html>

Leave a Reply

Your email address will not be published.