JSFiddle - React, Tailwind, and code Playground
by pichowskii
HTML
<div class="container">
<div id="products-container">
<h1>Apples's Laptops (6)</h1>
<ul class="products">
<li class="product-box">
<a href="http://laptop.bg/laptops-apple-MacBook_Air_11_6-apple_macbook_air_md711za">
<h2>Apple MacBook Air</h2>
<p class="additional">11.6-inch / 1.3GHz Haswell</p>
<img alt="Apple MacBook Air" class="thumbnail" src="http://laptop.bg/system/images/13410/thumb/MacBook_Air_11_6.jpg?1339679722" width="160" height="120">
<div class="price">
<div class="price-container">
<strong>
<span class="label">Price:</span>
<span class="vat-info">$1,729.00</span>
</strong>
</div>
</div>
</a>
</li>
<li class="product-box">
<a href="http://laptop.bg/laptops-apple-MacBook_Air_11_6-apple_macbook_air_md711za">
<h2>Apple MacBook Air</h2>
<p class="additional">11.6-inch / 1.4GHz Haswell</p>
<img alt="Apple MacBook Air" class="thumbnail" src="http://laptop.bg/system/images/13410/thumb/MacBook_Air_11_6.jpg?1339679722" width="160" height="120">
<div class="price">
<div class="price-container">
<strong>
<span class="label">Price:</span>
<span class="vat-info">$1,825.00</span>
</strong>
</div>
</div>
</a>
</li>
<li class="product-box">
<a href="http://laptop.bg/laptops-apple-MacBook_Air_11_6-apple_macbook_air_md711za">
<h2>Apple MacBook Air</h2>
<p class="additional">13.3-inch / 1.3GHz Haswell</p>
<img alt="Apple MacBook Air" class="thumbnail" src="http://laptop.bg/system/images/13410/thumb/MacBook_Air_11_6.jpg?1339679722" width="160" height="120">
<div class="price">
<div class="price-container">
<strong>
<span class="label">Price:</span>
<span class="vat-info">$1,919.00</span>
</strong>
</div>
</div>
</a>
</li>
<li class="product-box">
<a...
CSS
body {
font-family: Tahoma;
font-size: 18px;
margin: 0;
padding: 0;
}
label,
input,
button,
select,
textarea {
font-size: 13px;
font-weight: normal;
line-height: 22px;
}
label {
display: block;
}
ol, ul {
list-style: none;
}
a {
color: #2e425a;
}
.container {
width: 960px;
margin: 0 auto;
}
#products-container h1 {
font-family: "DaxlineProBold","Ubuntu","Lucida","Trebuchet MS",sans-serif;
font-size: 25px;
font-weight: bold;
margin-left: 70px;
color: #2e425a;
}
#products-container ul.products {
width: 630px;
margin-top: 5px;
}
#products-container ul.products li {
float: left;
background-color: #fff;
background-image: none;
border: solid 1px #d9eefa;
width: 193px;
height: 200px;
margin: 0 -8px 10px 20px;
padding: 7px 0 7px 0;
background: none;
position: relative;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
#products-container ul.products h2 {
font-size: 15px;
font-weight: bold;
position: relative;
z-index: 5;
margin: 0;
padding: 0px 7px 5px;
line-height: 1;
}
#products-container ul.products .additional {
font-size: 12px;
font-weight: normal;
padding-bottom: 2px;
position: relative;
z-index: 5;
margin: 0;
padding: 0px 7px 5px;
line-height: 1.4;
}
#products-container ul.products a {
display: block;
}
#products-container ul.products img {
position: absolute;
top: 50%;
left: 50%;
max-width: none;
width: auto;
height: auto;
margin: -60px 0 0 -80px;
text-align: center;
}
#products-container ul.products .price {
text-align: center;
font-weight: bold;
font-size: 1em;
position: absolute;
bottom: 1px;
right: 0px;
width: auto;
margin: 0;
padding: 0;
}
#products-container ul.products .price .price-container {
display: block;
width: auto;
height: auto;
overflow: hidden;
clear: both;
width: auto;
height: 30px;
margin: 0 0 -1px 1px;
}
#products-container ul.products .price strong...