Zocode
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta charset="utf-8"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<title>Responsive Layout Test</title>

<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>

<script type="text/javascript" async="" src="Responsive/ga.js"></script>

<script src="Responsive/jquery.min.js" type="text/javascript"></script>

<script src="Responsive/responsiveslides.min.js" type="text/javascript"></script>

<style type="text/css">

html { padding: 0; margin: 0; }

body {font: 1em/150% Arial, Helvetica, sans-serif;padding: 0; margin: 0;}a {color: #669;text-decoration: none;}

a:hover {text-decoration: underline;}h1 {font: bold 36px/100% Arial, Helvetica, sans-serif;}

#topbar {width: 100%;height: 35px;background: black;color: white;margin: 0;text-align: center;padding-top: 10px;}

#topbar p { margin-top: 0px; }#topbar a { color: orange; }/************************************************************************************STRUCTURE*************************************************************************************/#pagewrap {padding: 5px;width: 960px;margin: 20px auto;}

#header {height: 100px;padding: 0 15px;}

#content {width: 290px;float: left;padding: 5px 15px;}

#middle {width: 294px; /* Account for margins + border values */float: left;padding: 5px 15px;margin: 0px 5px 5px 5px;}

#sidebar {width: 270px;padding: 5px 15px;float: left;}#footer {clear: both;padding: 0 15px;}/************************************************************************************MEDIA QUERIES*************************************************************************************//* for 980px or less */@media screen and (max-width: 980px) {#pagewrap {width: 94%;}#content {width: 41%;padding: 1% 4%;}#middle {width: 41%;padding: 1% 4%;margin: 0px 0px 5px 5px;float: right;}#sidebar {clear: both;padding: 1% 4%;width: auto;float: none;}#header, #footer {padding: 1% 4%;}}/* for 800px or less @media screen and (max-width: 800px) {#pagewrap {width: 94%;}#content {width: 49%;}#middle {width: 49%;margin: 0px 0px 5px 0px;float: right;}#sidebar {clear: both;width: auto;float: none;}}*//* for 700px or less */@media screen and (max-width: 600px) {#content {width: auto;float: none;}#middle {width: auto;float: none;margin-left: 0px;}#sidebar {width: auto;float: none;}}/* for 480px or less */@media screen and (max-width: 480px) {#header {height: auto;}h1 {font-size: 24px;}#sidebar {display: none;}}/* border & guideline (you can ignore these) */#content {background: #f8f8f8;}#sidebar {background: #f0efef;}#header, #content, #middle, #sidebar {margin-bottom: 5px;}#pagewrap, #header, #content, #middle, #sidebar, #footer {border: solid 1px #ccc;}img {max-width: 100%;height: auto;width: auto9; /* ie8 */}.rslides { position: relative; list-style: none; overflow: hidden; width: 100%; padding: 0; margin: 0; }.rslides li { position: absolute; width: 100%; left: 0; top: 0; }.rslides img { display: block; height: auto; float: left; width: 100%; border: 0; } </style>

<style type="text/css"></style></head>

<link rel="stylesheet" type="text/css" href="data:text/css,"/>

<body>
<div id="topbar">
<p><a href="/">Cheesetoast - Brain Food for Web Developers</a></p>
</div><div id="pagewrap"><div id="header"><h1>Demo: 3 Column Responsive Layout</h1></div><div id="slideshow"><ul id="slides" class="rslides rslides1">

<li id="rslides1_s0" style="display: none; float: none; position: absolute; " class="">

<img src="Responsive/test_image2.jpg" alt=""/></li> <li id="rslides1_s1" style="float: left; position: relative; " class="rslides1_on">

<img src="Responsive/test_image3.jpg" alt=""/></li></ul></div>

<div id="content"><h2>1st Content Area</h2><p>This page demonstrates a 3 column responsive layout, complete with responsive images and jquery slideshow.</p><p>Resize the page to see the responsive layout in action.</p>

<img src="Responsive/test_image.jpg" alt="test"/><p>Return to the <a href="http://www.cheesetoast.co.uk/responsive-web-design-3-column-layout/">main article</a> for more information.</p></div>

<div id="middle"><h2>2nd Content Area</h2><p>At full width all three columns will be displayed side by side. As the page is resized the third column will collapse under the first and second. At the smallest screen size all three columns will be stacked on top of one another.</p><p>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p></div>

<div id="sidebar"><h2>3rd Content Area</h2><p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p><p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p></div>

<div id="footer"><h4>Footer</h4>

<p><a href="http://www.cheesetoast.co.uk/responsive-web-design-3-column-layout/">&larr; Return to main article</a></p>

</div></div>

<script> $(function () { $("#slides").responsiveSlides(); });</script>

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-5033712-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>
</body>
</html>
Like Quote
393 Likes

smith
Originally posted by Zocode
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta charset="utf-8"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<title>Responsive Layout Test</title>

<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>

<script type="text/javascript" async="" src="Responsive/ga.js"></script>

<script src="Responsive/jquery.min.js" type="text/javascript"></script>

<script src="Responsive/responsiveslides.min.js" type="text/javascript"></script>

<style type="text/css">

html { padding: 0; margin: 0; }

body {font: 1em/150% Arial, Helvetica, sans-serif;padding: 0; margin: 0;}a {color: #669;text-decoration: none;}

a:hover {text-decoration: underline;}h1 {font: bold 36px/100% Arial, Helvetica, sans-serif;}

#topbar {width: 100%;height: 35px;background: black;color: white;margin: 0;text-align: center;padding-top: 10px;}

#topbar p { margin-top: 0px; }#topbar a { color: orange; }/************************************************************************************STRUCTURE*************************************************************************************/#pagewrap {padding: 5px;width: 960px;margin: 20px auto;}

#header {height: 100px;padding: 0 15px;}

#content {width: 290px;float: left;padding: 5px 15px;}

#middle {width: 294px; /* Account for margins + border values */float: left;padding: 5px 15px;margin: 0px 5px 5px 5px;}

#sidebar {width: 270px;padding: 5px 15px;float: left;}#footer {clear: both;padding: 0 15px;}/************************************************************************************MEDIA QUERIES*************************************************************************************//* for 980px or less */@media screen and (max-width: 980px) {#pagewrap {width: 94%;}#content {width: 41%;padding: 1% 4%;}#middle {width: 41%;padding: 1% 4%;margin: 0px 0px 5px 5px;float: right;}#sidebar {clear: both;padding: 1% 4%;width: auto;float: none;}#header, #footer {padding: 1% 4%;}}/* for 800px or less @media screen and (max-width: 800px) {#pagewrap {width: 94%;}#content {width: 49%;}#middle {width: 49%;margin: 0px 0px 5px 0px;float: right;}#sidebar {clear: both;width: auto;float: none;}}*//* for 700px or less */@media screen and (max-width: 600px) {#content {width: auto;float: none;}#middle {width: auto;float: none;margin-left: 0px;}#sidebar {width: auto;float: none;}}/* for 480px or less */@media screen and (max-width: 480px) {#header {height: auto;}h1 {font-size: 24px;}#sidebar {display: none;}}/* border & guideline (you can ignore these) */#content {background: #f8f8f8;}#sidebar {background: #f0efef;}#header, #content, #middle, #sidebar {margin-bottom: 5px;}#pagewrap, #header, #content, #middle, #sidebar, #footer {border: solid 1px #ccc;}img {max-width: 100%;height: auto;width: auto9; /* ie8 */}.rslides { position: relative; list-style: none; overflow: hidden; width: 100%; padding: 0; margin: 0; }.rslides li { position: absolute; width: 100%; left: 0; top: 0; }.rslides img { display: block; height: auto; float: left; width: 100%; border: 0; } </style>

<style type="text/css"></style></head>

<link rel="stylesheet" type="text/css" href="data:text/css,"/>

<body>
<div id="topbar">
<p><a href="/">Cheesetoast - Brain Food for Web Developers</a></p>
</div><div id="pagewrap"><div id="header"><h1>Demo: 3 Column Responsive Layout</h1></div><div id="slideshow"><ul id="slides" class="rslides rslides1">

<li id="rslides1_s0" style="display: none; float: none; position: absolute; " class="">

<img src="Responsive/test_image2.jpg" alt=""/></li> <li id="rslides1_s1" style="float: left; position: relative; " class="rslides1_on">

<img src="Responsive/test_image3.jpg" alt=""/></li></ul></div>

<div id="content"><h2>1st Content Area</h2><p>This page demonstrates a 3 column responsive layout, complete with responsive images and jquery slideshow.</p><p>Resize the page to see the responsive layout in action.</p>

<img src="Responsive/test_image.jpg" alt="test"/><p>Return to the <a href="http://www.cheesetoast.co.uk/responsive-web-design-3-column-layout/">main article</a> for more information.</p></div>

<div id="middle"><h2>2nd Content Area</h2><p>At full width all three columns will be displayed side by side. As the page is resized the third column will collapse under the first and second. At the smallest screen size all three columns will be stacked on top of one another.</p><p>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p></div>

<div id="sidebar"><h2>3rd Content Area</h2><p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p><p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p></div>

<div id="footer"><h4>Footer</h4>

<p><a href="http://www.cheesetoast.co.uk/responsive-web-design-3-column-layout/">&larr; Return to main article</a></p>

</div></div>

<script> $(function () { $("#slides").responsiveSlides(); });</script>

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-5033712-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>
</body>
</html>
Like Quote
176 Likes


Comment Box
Your Name:

Your Text here:

Color


Hindi Movie
Download Android Game for Free
Shareit  New Apps  Android Games  more