Witam mam następujący problem mam taki oto kod i przy divie 'screen' ma być obok opis a nie pod spodem, a gdy dodam dla diva #screen float:left; to on całkowicie znika.. proszę o pomoc..
body {
background-color: #181818;
margin:0;
padding:0;
}
#ustawienie {
overflow: hidden;
width: 850px;
margin-left: auto;
margin-right: auto;
}
#przycisk {
width: 103px;
height: 34px;
float: left;
}
#menu {
white-space: nowrap;
float: left;
height: 34px;
margin-top: 90px;
width: 500px;
margin-left: 400px;
}
#menu a {
padding-top: 5px;
white-space: nowrap;
font-weight: bold;
font-family: MS Sans Serif, Arial;
color: white;
text-align: center;
text-decoration: none;
float: left;
width: 103px;
height: 34px;
}
#menu a:hover {
float: left;
text-decoration: none;
font-weight: bold;
font-family: MS Sans Serif, Arial;
color: white;
width: 103px;
height: 34px;
background: url(img/tlopodm.png) no-repeat;
}
#top {
background: url(img/lay_01.gif) repeat;
margin-left: auto;
margin-right: auto;
height: 175px;
widht: 850px;
text-align: center;
}
#screen {
float: left;
margin-top: 20px;
background: url(img/lay_04.gif) no-repeat;
height: 161px;
widht: 504px;
text-align: center;
}
#kreska {
margin-top: 10px;
height: 4px;
width: 850px;
background: url(img/l_08.gif) repeat;
}
#news {
margin-top: 30px;
height: 176px;
background: url(img/lay_11.gif) repeat;
}
#belka {
height: 44px;
background: url(img/lay_12.gif) repeat;
}
#stopka {
height: 41px;
background: url(img/lay_13.gif) repeat;
}
html:
<div id="menu"> <div id="przycisk"> <a href="hudada">Home
</a></div> <div id="przycisk"><a href="hudada">Porfolio
</a></div> <div id="przycisk"><a href="hudada">Sklep
</a></div> <div id="przycisk"><a href="hudada">Kontakt
</a></div> </div>
<div id="screen"> </div> //
<--- WŁAŚNIE TU MA BYĆ OPIS. <div id="news">daasdasd
</div> <div id="stopka">daasdasd
</div>
Ten post edytował miras 26.02.2012, 14:41:37