<div class="container">
<div class="row">
<div class="left col-md-6">
<i class="fa fa-arrow-left" aria-hidden="true"></i>
<img class="headset" src="https://media.ldlc.com/r1600/ld/products/00/05/00/34/LD0005003477_2.jpg">
<i class="fa fa-arrow-right" aria-hidden="true"></i>
</div>
<div class="right col-md-6">
<h4 class="categorie">Gaming headset</h4>
<h3 class="product">Steelseries Arctis 7</h3>
<ul class="desc">
<li>Lag-Free Wireless Gaming Headset</li>
<li>DTS Headphone : X 7.1 Surround Sound</li>
<li>ClearCast, the Best Mic in Gaming</li>
</ul>
<div class="color">
<p class="title-colour">Color : <span class="blackwhite">Black</span></p>
<i class="color-black fa fa-check" aria-hidden="true"></i>
<i class="color-white fa fa-check" aria-hidden="true"></i>
</div>
<p class="price">€179.99</p>
<p class="buy">Buy now</p>
</div>
</div>
body {
min-height: 100vh;
background:#adadad;
padding: 60px 20px;
}
.container {
margin: 0px auto 0px;
background: #fff;
width: 800px;
box-shadow: 0 3px 6px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.15);
}
@media (max-width: 1000px){
.container {
width: 80%;
}
}
.left {
padding: 60px;
border-bottom: 3px solid rgba(255, 165, 0, 0.1);
}
.left img {
width: 100%;
}
.left .fa {
cursor: pointer;
position: absolute;
top: 40px;
color: #eaeaea;
font-size: 18pt;
transition: all .6s;
}
.left .fa:hover {
color: #ccc;
}
.left .fa-arrow-left {
left: 40px;
}
.left .fa-arrow-right {
right: 40px;
}
.right {
border-left: 2px solid rgba(255, 165, 0, 0.1);
padding: 40px;
padding-bottom: 0;
background: #f7f5f6;
}
.categorie {
margin-top: 10px;
font-size: 16pt;
text-transform: uppercase;
font-family: "Montserrat";
font-weight: 300;
color: #FF9800;
}
.product {
font-size: 25pt;
margin-top: 10px;
font-weight: 500;
color: #666;
font-family: "Montserrat";
}
.desc {
margin-top: 20px;
color: #777;
}
.desc li {
font-size: 10pt;
font-family: "Montserrat";
margin: 15px -5px;
}
.title-colour {
margin-top: 25px;
font-size: 13pt;
font-family: "Montserrat";
}
.color-black {
display: inline-block;
cursor: pointer;
padding: 14px;
background-color: #000;
color: #fff;
border-radius: 30px;
}
.color-white {
cursor: pointer;
display: inline-block;
padding: 14px;
background-color: #fff;
color: #fff;
margin-left: 10px;
border-radius: 30px;
border: 1px solid #ddd;
}
.price {
margin-top: 20px;
margin-bottom: 30px;
font-size: 28px;
font-family: "Montserrat";
font-weight: 400;
display: inline-flex;
}
.buy {
display: inline-flex;
position: absolute;
right: 40px;
bottom: 10px;
background-color: #ffa501;
padding: 14px 35px 12px 35px;
color: #fff;
border-radius: 30px;
text-transform: uppercase;
font-weight: bold;
font-family: "Montserrat";
transition: all .6s;
border: 3px solid #ffa501;
cursor: pointer;
}
.buy:hover {
color: #ffa501;
background-color: #fff;
}
$( ".color-black" ).click(function() {
$(this).css( "color", "white" );
$(".color-white").css( "color", "white" );
$(".blackwhite").html("Black");
src="https://media.ldlc.com/r1600/ld/products/00/05/00/34/LD0005003477_2.jpg";
$(".headset").attr("src", src);
});
$( ".color-white" ).click(function() {
$(this).css( "color", "black" );
$(".color-black").css( "color", "black" );
$(".blackwhite").html("White");
src="https://media.ldlc.com/r1600/ld/products/00/05/00/35/LD0005003502_2.jpg";
$(".headset").attr("src", src);
});