Od razu zaznaczam że jestem noobem w html. :V
Tworzę prostą stronę, i jak to bywa w końcu musi znaleźć się jakiś błąd którego nie umiem rozwiązać. Chodzi o postawienia 2 divów pionowo i 2 poziomo. Kod wygląda tak:
HTML
CSS
Kod
.info_header {
float: left;
clear: both;
margin-top: 5%;
width: 50%;
margin-left: 15%;
margin-right: 15%;
background-color: #FFFFFF;
height: 5%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.info_content {
float: left;
clear: both;
margin-top: 1%;
width: 50%;
margin-left: 15%;
margin-right: 15%;
background-color: #FFFFFF;
height: 20%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.stats_header {
float: right;
clear: both;
margin-top: 1%;
width: 24%;
margin-left: 61%;
margin-right: 10%;
background-color: #FFFFFF;
height: 5%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.stats_content {
float: right;
margin-top: 1%;
width: 24%;
margin-left: 61%;
margin-right: 10%;
background-color: #FFFFFF;
height: 20%;
display: inline-block;
font-family:Arial;
}
float: left;
clear: both;
margin-top: 5%;
width: 50%;
margin-left: 15%;
margin-right: 15%;
background-color: #FFFFFF;
height: 5%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.info_content {
float: left;
clear: both;
margin-top: 1%;
width: 50%;
margin-left: 15%;
margin-right: 15%;
background-color: #FFFFFF;
height: 20%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.stats_header {
float: right;
clear: both;
margin-top: 1%;
width: 24%;
margin-left: 61%;
margin-right: 10%;
background-color: #FFFFFF;
height: 5%;
display: inline-block;
font-family:Arial;
overflow: hidden;
}
.stats_content {
float: right;
margin-top: 1%;
width: 24%;
margin-left: 61%;
margin-right: 10%;
background-color: #FFFFFF;
height: 20%;
display: inline-block;
font-family:Arial;
}
Chciałem zrobić margin-bottom ale to raczej nie jest zbyt profesjonalne, + nie działałoby na wszystkich rozdzielczościach. :x