Skip to content

Instantly share code, notes, and snippets.

@iam-gopi
Created May 16, 2025 03:05
Show Gist options
  • Save iam-gopi/0507c290718c49f04b7bbc61cbe8f979 to your computer and use it in GitHub Desktop.
Save iam-gopi/0507c290718c49f04b7bbc61cbe8f979 to your computer and use it in GitHub Desktop.
CSS Task boiler plat code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Learning CSS</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section id="container">
<div id="img-container">
<img class="img-size" src="./img.webp" alt="" />
<img class="img-size" src="./img.webp" alt="" />
<img class="img-size" src="./img.webp" alt="" />
</div>
<div>
<img src="./img.webp" id="product-img" />
</div>
<div>
<h1 class="spacing" id="title">Lorem ipsum dolor sit amet.</h1>
<p class="spacing">Quasi explicabo nihil numquam eaque!</p>
<p class="spacing" id="icon-container">
<img class="icon" src="./brand.png" alt="" />
<img class="icon" src="./brand.png" alt="" />
<img class="icon" src="./brand.png" alt="" />
<img class="icon" src="./brand.png" alt="" />
<img class="icon" src="./brand.png" alt="" />
</p>
<p class="spacing">Adipisci neque sequi eligendi similique!</p>
<p class="spacing">Atque impedit quis voluptatibus praesentium!</p>
</div>
<div class="spacing">
<main id="main-container">
<h4>Currently unavailable</h4>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Qui,
nesciunt.
</p>
<p>my location</p>
<hr />
<select name="" id="">
<option value="0">Add to Wish List</option>
</select>
</main>
</div>
</section>
</body>
</html>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#container {
display: flex;
justify-content: center;
/* align-items: center; */
}
#img-container {
display: flex;
flex-direction: column;
}
.img-size {
width: 100px;
height: 100px;
border: 1px solid #222;
margin: 15px;
border-radius: 10px;
}
#title {
font-weight: 800;
font-size: 30px;
}
.spacing {
margin: 10px;
padding: 5px;
}
#product-img {
width: 600px;
border-radius: 10px;
margin: 15px;
}
.icon {
width: 30px
}
#icon-container {
display: flex;
justify-content: space-between;
}
#main-container {
display: flex;
justify-content: center;
flex-direction: column;
border: 1px solid #222;
padding: 15px;
border-radius: 8px;
}
hr {
margin: 15px 0;
}
select {
height: 30px;
border-radius: 5px;
padding: 6px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment