Jak się pozbyć odstępu między górną a dolnymi 'tabelami' DIVami ?
<!DOCTYPE html>
#container
{
width: 1200px;
display: block;
margin:0 auto;
}
#glowna:after {
content:'';
display:block;
clear:both;
}
#top1 {
width:1150px;
height: 100px;
background-color:lightblue;
margin-left: 0px;
// padding:2px;
margin-top: 10px;
}
#table1 {
float:left;
width:5%;
height: 500px;
background-color:lightblue;
margin-left: 0px;
// padding:2px;
margin-top: 25px;
}
#table2 {
float:left;
width:20%;
height: 500px;
background-color:lightgreen;
margin-left: 0px;
// padding:2px;
margin-top: 25px;
}
#table3 {
float:left;
width:550px;
height: 500px;
background-color:gold;
margin-left: 0px;
// padding:2px;
margin-top: 25px;
}
#table4 {
float:left;
width:20%;
height: 500px;
background-color:lightgreen;
margin-left: 0px;
// padding:2px;
margin-top: 25px;
}
#table5 {
float:left;
width:5%;
height: 500px;
background-color:lightblue;
margin-left: 0px;
// padding:2px;
margin-top: 25px;
}
<div id="top1">górny - div
</div>
<div id="table1">pierwszy - div
</div> <div id="table2">drugi - div
</div> <div id="table3">trzeci - div
</div> <div id="table4">czwarty - div
</div> <div id="table5">piąty - div
</div>
</div> <!--container end--->
margin-bottom: 0px; w #top1 nie pomaga
Ten post edytował david8213 26.03.2019, 09:08:06