cześć. Mam problem z ułożeniem 2divów obok siebie. Mianowicie chodzi o Fotka i opis. Oto kod:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title> Opis strony</title>
<link rel="Stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="strona">
<div id="pasekg">
</div>
<nav>
<ul>
<li>
<a href="#">Najnowsze</a>
<a href="#">Wyniki</a>
<a href="#">Kontakt</a>
<a href="#">Pomoc</a>
<a href="#">Donate</a>
</i>
</ul>
</nav>
<div id="fotka">
<img src="avatar.png" width:"10px" height:"20px">
</div>
<div id="opis">
<h1>Krótkie informacje o mnie:</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dictum sollicitudin libero, eget dapibus quam imperdiet et.</p></br><p> Nullam lacinia convallis odio, eu iaculis mauris sagittis in. Nulla pulvinar ante quis placerat malesuada</p></br><p>Miłego dnia!</p>
</div>
<div style="clear:both;"></div>
</div>
<div id="footer">Strona www.XXXXXX.pl wykonana przez Vizooo. Wszelkie prawa zastrzeżone.</div>
</body>
</html>
body
{
margin: 0 !important;
background-color: #191919;
width: 100%;
}
#pasekg
{
width: 100%;
height: 120px;
text-align: center;
color: white;
padding: 0;
}
nav ul
{
background-color: #46A0D5;
list-style: none;
padding: 0;
text-align: center;
}
nav ul li
{
font-size: 120%;
padding: 15px;
}
nav ul li a:hover
{
background-color: #fbfbfb;
color: #46A0D5;
border-radius: 15px;
}
nav ul li a
{
color: #fbfbfb;
text-decoration: none;
padding: 11px;
}
#fotka
{
width: 20%;
height: 300px;
margin: 0 2.5%;
border: 1px solid red;
float: left;
}
#fotka img
{
width: 100%;
}
#opis
{
margin: 8px 5px 8px 5px;
border-radius: 6px;
text-align: center;
width: 30%;
margin: 0 auto;
float: left;
border-left: 1px dotted white;
}
#opis h1
{
font-size: 44px;
color: #46A0D5;
padding-bottom: 15px;
}
#opis p
{
font-size: 17px;
color: white;
margin: 0 auto;
}
#footer
{
clear:both;
border-top: 1px solid gray;
height: 40px;
line-height: 40px;
vertical-align: middle;
color: white;
clear: both;
width: 100%;
text-align: center;
position: absolute;
font-size: 12px;
margin-top: 70px;
}