Professional Documents
Culture Documents
Css
Css
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-image: url("slike/bg.jpg");
background-size: cover;
font-family: sans-serif;
padding: 50px;
}
h1 {
font-family: serif;
text-align: center;
margin-bottom: 15px;
color: white;
font-weight: bolder;
}
h2 {
font-family: "Courier New", Courier, monospace;
margin-bottom: 15px;
color: violet;
font-weight: bolder;
}
h3 {
font-family: "Courier New", Courier, monospace;
margin-bottom: 15px;
color: violet;
font-weight: bolder;
}
.prodavnica {
max-width: 800px;
margin: auto;
border: 4px solid olive;
border-radius: 30px;
display: flex;
background-color: rgba(255, 255, 255, 0.3);
}
.proizvodi {
width: 60%;
padding: 20px;
}
.korpa {
width: 40%;
padding: 20px;
border-left: 4px solid olive;
background-image: url("slike/cart.png");
background-size: 150px;
background-position: center;
background-repeat: no-repeat;
position: relative;
}
.proizvod {
display: flex;
border-bottom: 2px solid greenyellow;
padding: 15px 0;
}
.proizvod:last-child {
border-bottom: 0;
}
.proizvod img {
max-width: 150px;
}
.proizvod .opis {
width: 70%;
padding-left: 20px;
padding-top: 80px;
}
.proizvod .opis p {
font-size: 20px;
display: inline-block;
}
.proizvod .dodavanje {
width: 30%;
}
.proizvod_korpa {
display: block;
padding-right: 5px;
justify-content: space-between;
text-align: left;
margin-bottom: 15px;
}
.proizvod_korpa h3 {
margin-bottom: 0;
}
.proizvod_korpa button {
padding: 5px;
}
.total {
position: absolute;
bottom: 20px;
left: 20px;
font-size: 24px;
}
.cena {
text-decoration: line-through;
font-weight: lighter;
display: flex;
vertical-align: bottom;
}
.snizenje {
font-weight: bold;
display: flex;
}