PYLIB
Decapat
- Katılım
- 25 Kasım 2020
- Mesajlar
- 214
- Çözümler
- 4
Arkadaşlar ürünlerimiz kısmının sağına içerik tablosu gelmesi gerekiyor. Ürünler tablosunun sağına içerikler tablosunu getiremiyorum ürünlerin sağına nasıl içerik tablosunu getirebilirim sorunu nasıl çözebilirim yardımcı olur musunuz?
Kod:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* For mobile phones: */
[class*="col-"]
{
width : 100%;
}
.row::after
{
content: "";
clear: both;
display: table;
}
@media only screen and (min-width: 600px) {
/* For tablets: */
.col-s-1 {width: 8.33%;}
.col-s-2 {width: 16.66%;}
.col-s-3 {width: 25%;}
.col-s-4 {width: 33.33%;}
.col-s-5 {width: 41.66%;}
.col-s-6 {width: 50%;}
.col-s-7 {width: 58.33%;}
.col-s-8 {width: 66.66%;}
.col-s-9 {width: 75%;}
.col-s-10 {width: 83.33%;}
.col-s-11 {width: 91.66%;}
.col-s-12 {width: 100%;}
}
@media only screen and (min-width: 768px) {
/* For desktop: */
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
}
* {
box-sizing: border-box;
}
html
{
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
background-color: rgb(52, 145, 145);
}
#header
{
background-color: rgb(41, 168, 168);
height:80px;
padding-top: 5px;
border-radius: 5px;
text-align: center;
color: white;
}
#headertext
{
position: relative;
padding-top: 16px;
font-weight: bolder;
font-size: 30px;
}
#navbar
{
margin-top: 10px;
background-color: rgb(41, 168, 168);
height:530px;
padding-top: 5px;
border-radius: 5px;
text-align: center;
color: white;
}
#navbartext
{
font-weight: bold;
font-size: 20px;
border-radius: 25px;
padding-top: 10px;
}
#butonlar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#butonlar li {
padding: 8px;
margin-bottom: 7px;
background-color: rgb(23, 201, 201);
color: #ffffff;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
margin-left: 10px;
margin-right: 10px;
position: relative;
margin-top: 20px ;
transition-duration: 500ms;
top: 5px;
border-radius: 10px;
}
#butonlar li:hover
{
padding: 8px;
margin-bottom: 7px;
background-color: rgb(31, 168, 168);
color: #ffffff;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
margin-left: 10px;
margin-right: 10px;
position: relative;
margin-top: 20px ;
}
#butonlar a
{
padding: 8px;
margin-bottom: 7px;
color: #ffffff;
text-decoration: none;
margin-left: 10px;
margin-right: 10px;
position: relative;
margin-top: 20px ;
}
#içerik
{
margin-top: 10px;
background-color: rgb(41, 168, 168);
height:530px;
padding-top: 5px;
border-radius: 5px;
text-align: center;
color: white;
}
</style>
</head>
<body>
<header id = "header" class="col-12">
<div id="headertext">Hoşgeldiniz</div>
</header>
<div id="navbar" class="col-3">
<div id="navbartext">Ürünlerimiz</div>
<div id="butonlar">
<ul>
<li><a href="#">The Flight</a></li>
<li><a href="#">The City</a></li>
<li><a href="#">The Island</a></li>
<li><a href="#">The Food</a></li>
</ul>
</div>
<div id="reklam">
<img src="$"width="315px" height="230px" style="position: relative; top: 20px; background-color: rgb(51, 133, 133); border-radius: 5px;">
</div>
</div>
</div>
<div id="içerik" class="col-6">
<div id="navbartext">İçerik</div>
</div>
</body>
</html>
Dosya Ekleri
Son düzenleyen: Moderatör: