oto mój kod. Problem polega na tym że przy responsywności (na oknie telefonu ) nie wemczmu pojawia mi się czarne pole a przy krószej stronie divy nachodzą na siebie. Pomoże ktoś mi to rozwiązać? CHodzi mi o takie coś:
Efekt można zobaczyć na stronie ligacsgo.y0.pl
HTML:
<!doctype html>
<html>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<head>
<meta charset="UTF-8">
<title> Opis strony</title>
<link rel="Stylesheet" href="style.css" type="text/css" />
<link rel="Stylesheet" href="css/fontello.css" type="text/css" />
<link href='https://fonts.googleapis.com/css?family=Signika:600&subset=latin-ext' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<div id="container">
<div id="lewa">
<div id="foto">
<img class="img-responsive" alt="" src="avatar.png"></img>
</div>
<div class="opcja"><h1>Jakub Bielawski</h1></div>
<nav class="nav">
<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">GALERIA</a></li>
<li><a href="#">KONTAKT</a></li>
<li><a href="#">POMOC</a></li>
</ul>
</nav>
</div>
<div id="prawa">
<div id="prawasrodek">
</div>
</div>
</div>
</body>
</html>
html{
height: 100%;
margin: 0 auto;
}
body{
margin: 0 auto;
height: 100%;
padding: 0;
background: #222930 none repeat scroll;
position:relative;
}
#container{
width: 100%;
height: 100%;
}
#lewa{
height: 100%;
width: 20%;
background-color: #E7E7E7;
padding-left: 0;
color: #777;
font-weight: 600;
float: left;
}
#foto{
padding-top: 3%;
height: 10%;
width: 99%;
padding-bottom: 1%;
padding-left: 1%;
font-family: 'Signika', sans-serif;
}
.img-responsive{
display: block;
height: 100%;
margin: 0 auto;
}
.opcja{
border-bottom: 0.3px dashed black;
width: 99%;
line-height: 200%;
margin:0;
padding-left: 1%;
}
.opcja h1{
text-align: center;
font-size: 13px;
font-weight: 400;
font-family: 'Signika', sans-serif;
}
#lewa ul{
list-style-type: none;
margin: 0;
padding: 0;
padding-top: 6%;
padding-bottom: 6%;
border-bottom: 0.1px dashed black;
}
#lewa ul li a{
display: block;
text-decoration: none;
padding: 6% 0% 6% 0%;
text-align: center;
color: #777;
font-size: 19px;
font-family: 'Signika', sans-serif;
width: 98%;
margin: auto;
}
#lewa ul li a:hover{
color: black;
}
#prawa{
float: left;
width: 80%;
background-color: white;
height: 100%;
}
#prawasrodek{
width: 75%;
height: 10%;
background-color: red;
margin: 0 auto;
}
@media screen and (max-width: 640px) {
#lewa{
height: 0%;
height: 42%;
width: 100%;
background-color: #E7E7E7;
padding-top: 2%;
padding-bottom: 5%;
}
#foto{
height: 40%;
width: 99%;
padding-bottom: 0;
margin-bottom: 1%;
padding-left: 1%;
font-family: 'Signika', sans-serif;
}
.img-responsive{
display: block;
height: 100%;
margin: 0 auto;
}
.opcja{
border-bottom: 0;
width: 99%;
line-height: 200%;
margin:0;
padding-left: 1%;
}
.opcja h1{
text-align: center;
font-size: 13px;
font-weight: 400;
font-family: 'Signika', sans-serif;
}
#lewa ul{
list-style-type: none;
margin: 0;
padding: 0;
border-bottom: 0;
}
#lewa ul li a{
display: block;
text-decoration: none;
text-align: center;
color: #777;
font-size: 17px;
font-family: 'Signika', sans-serif;
width: 100%;
margin: auto;
padding: 0;
margin-top: 2%;
margin-bottom: 2%;
background-color: white;
}
#lewa ul li a:hover{
color: black;
background-color: white;
}
#prawa{
margin-top: 3%;
width: 100%;
}
}