Shopping Blogger CSS Layout
/* Reset default styles */
body, h1, h2, h3, p, ul, li {
margin: 0;
padding: 0;
}
/* Set font styles and background color */
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
}
/* Wrapper styles */
#wrapper {
display: grid;
grid-template-columns: 1fr;
grid-gap: 20px;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header styles */
#header {
text-align: center;
margin-bottom: 20px;
}
#header h1 {
font-size: 28px;
margin: 0;
}
/* Navigation styles */
#navigation {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
#navigation ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#navigation ul li {
display: inline-block;
margin-right: 10px;
}
#navigation ul li a {
color: #fff;
text-decoration: none;
padding: 5px 10px;
}
/* Main content styles */
#main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: 20px;
}
/* Product styles */
.product {
background-color: #fff;
border: 1px solid #ccc;
padding: 20px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
}
.product h3 {
font-size: 18px;
margin-bottom: 10px;
}
.product p {
color: #888;
margin-bottom: 10px;
}
.product button {
background-color: #4CAF50;
color: #fff;
border: none;
padding: 8px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s;
}
.product button:hover {
background-color: #45a049;
}
/* Footer styles */
#footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
Welcome to our Shopping Blogger CSS Layout
Product 1
$19.99
Add to Cart
Product 2
$24.99
Add to Cart
