css:
body {
margin: 0px;
color: #444;
font-family: 'Dosis', sans-serif;
}
#head {
background: #F1F1F1;
width: 100%;
min-height: 300px;
margin-top: 30px;
}
#wrap {
max-width: 900px;
padding: 10px;
margin: 0px auto;
}
#item {
width: 100%;
max-width: 300px;
float: left;
padding: 20px;
}
#body {} #a {
width: 250px;
margin: 5px;
min-height: 50px;
float: left;
padding: 0px 10px;
}
#b {
width: 250px;
margin: 5px;
min-height: 50px;
float: left;
padding: 0px 10px;
}
#c {
width: 250px;
margin: 5px;
min-height: 50px;
float: left;
padding: 0px 10px;
}
button {
background: #FEAD39;
border: 1px solid #ED9C28;
padding: 10px;
border-radius: 8px;
color: #fff;
font-size: 18px;
}
button:hover {
background: #ED9C28
}
---------------------------
Html :
<link href='http://fonts.googleapis.com/css?family=Dosis:300,400' rel='stylesheet' type='text/css'>
<div id="head">
<div id="wrap">
<center><img src="http://cdn.shopify.com/s/files/1/0587/7009/products/Dougla_Black_1_1024x1024.jpg?v=1435587248" id="item">
</center>
<div style="width:500px;float:left" id="box">
<h1>Enter to win a Cool Shirt</h1>
<p>Hi Everyone, We are giving away 200 Cool T-shirt for FREE Until {%today_date%}. All you have to do is participate by completing one offer below.</p>
<br>
<p>After Completion, You will be prompted to Enter your Shipping Address.</p>
<br>
<center>{%offers%}</center>
<br>
<p>All entries will be raffled and electronically drawn every Sunday 10:00 AM EST. Winners will be contacted via facebook.</p>
<br>
<p>Total Entries : <b>347</b>
</p>
</div>
<div style="clear:both"></div>
</div>
</div>
<div id="body">
<div id="wrap">
<div id="a">
<h1>Step 1</h1>
<p>Click the button above and select an offer available in your region. If there were no offer to come out, Please disable your adblocker software or plugin.</p>
</div>
<div id="b">
<h1>Step 2</h1>
<p>Complete the offer with valid Information. Offers can be completed 2-3 minutes depends on your internet connection.</p>
</div>
<div id="c">
<h1>Step 3</h1>
<p>After Completion, You will be prompted to Enter your Shipping Address. Winners will be posted on our facebook fanpage as well.</p>
</div>
<div style="clear:both"></div>
<hr/>
<p>Participants who complete all 3 steps mentioned above will be entered to win the prize shown. This is an independent drawing. This website may or may not be endorsed or affiliated with the brands mentioned above.
<br/>
<br/> All winners are randomly drawn and then contacted via facebook to collect their prize. Shipping information is required after completing an offer. The information collected from Facebook for all drawings is securely stored. Have fun and good luck!</p>
<hr/>
<a onclick="$('#link_terms').fadeIn(1000);" style="box-sizing: border-box; color: rgb(17, 85, 204); text-decoration: none; cursor: pointer;">Terms</a><span class="Apple-converted-space"> </span>|<span class="Apple-converted-space"> </span><a onclick="$('#link_privacy').fadeIn(1000);" style="box-sizing: border-box; color: rgb(17, 85, 204); text-decoration: none; cursor: pointer;">Privacy</a><span class="Apple-converted-space"> </span>|<span class="Apple-converted-space"> </span><a onclick="$('#link_dmca').fadeIn(1000);" style="box-sizing: border-box; color: rgb(17, 85, 204); text-decoration: none; cursor: pointer;">DMCA</a>
<p style="float:right">Copyright ©. All rights reserved.</p>
</div>
</div>
<script src='http://code.jquery.com/jquery-1.11.0.min.js'></script>
<script>
if ($(window).width() < 900) {
$("#a").css("width", "100%");
$("#b").css("width", "100%");
$("#c").css("width", "100%");
$("#box").css("width", "100%");
$("#item").css("float", "none");
} else if ($(window).width() < 500) {
$("#item").css("max-width", "500px");
} else {
$("#a").css("width", "250px");
$("#b").css("width", "250px");
$("#c").css("width", "250px");
$("#item").css("max-width", "300px");
$("#box").css("width", "500px");
$("#item").css("float", "left");
}
$(window).resize(function() {
if ($(window).width() < 900) {
$("#a").css("width", "100%");
$("#b").css("width", "100%");
$("#c").css("width", "100%");
$("#box").css("width", "100%");
$("#item").css("float", "none");
} else if ($(window).width() < 500) {
$("#item").css("max-width", "500px");
} else {
$("#a").css("width", "250px");
$("#b").css("width", "250px");
$("#c").css("width", "250px");
$("#item").css("max-width", "300px");
$("#box").css("width", "500px");
$("#item").css("float", "left");
}
});
$('head').append('<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1"></meta>');
</script>