Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Problem z divami.
#1
http://i38.tinypic.com/ek5ohx.png

[Obrazek: ek5ohx.png]

Witam

Jak na obrazku wyżej, mam problem z banerem i menu ponieważ banner jest w lini poziomej wraz z menu a chciałbym aby był pod menu lecz obok loga (jak na obrazku ).


css
Kod:
html, body {
    background-image: url("images/tlo.png");
    background-repeat: repeat;
    color: #000;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    margin-left: 100px;
    margin-right: 100px;
    

}

#NAGLOWEK {
    background-color: ;
    margin-right: 300px;
    height: px;
    width: 300px;
    height: 170px;
}

#MENU {


    text-align: center;
    height: 30px;
    background-color: #292929;
    width: 300px;
    float: right;
    overflow: hidden;
    color: white;
    word-spacing: 1cm;


}
#SPONSOR {

    background-color: #292929;
    height: 30px;
    float: right;
    overflow: hidden;
    color: white;
    word-spacing: 1cm;


}

#TRESC {

    margin-top: 30px;
    text-align: center;
    background-color: #;
}


#STOPKA {
    clear: both;
    background-color: #;
    font-size: small;
    text-align: center;
    color: #616060;
}

A {
color : white;
text-decoration : none;
}




/* this is for the mouseout and default settings */
  
.on {
   color: white;
}
  
/* :hover is a pseudo selector to use to set the mouseover attributes */
.on:hover {
   color: #00b4ff;
}


html
Kod:
<body>

<div id="top">
    <div id="MENU"> <a class="on" href="index.html">news</a> <a class="on" href="portofolio.html">portofolio</a> <a class="on" href="contact.html">contact</a></div>
    <div id="SPONSOR"> ---sponsor--- </div>
    <div id="NAGLOWEK"><img src="images/logo.png" alt="Logotypes"/></div>     

    <div id="TRESC">


        <img src="images/logo/1.png" class="obrazek" />
<br /><br /><br />
        <img src="images/logo/2.png" />
</div>

<div id="STOPKA">All right reserved by logotypes.pl<br />Copyright &copy; 2010</div>
</div>

</body>


Proszę o poprawę bo już chwilę się meczę i nie mogę nic wymyślić.
Odpowiedz
#2
Rozwiązane Smile

Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
html, body {
    background-image: url("images/tlo.png");
    background-repeat: repeat;
    color: #000;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    margin-left: 100px;
    margin-right: 100px;
    

}
#top{
    overflow:hidden;
}
#menuspons{
    overflow:hidden;
    float:right;
    width:300px;
}
#NAGLOWEK {
    width: 300px;
    height: 170px;
    float:left;
    
}

#MENU {


    text-align: center;
    height: 30px;
    background-color: #292929;
    width: 300px;
    
    overflow: hidden;
    color: white;
    word-spacing: 1cm;


}
#SPONSOR {

    background-color: #292929;
    height: 30px;
    
    overflow: hidden;
    color: white;
    word-spacing: 1cm;


}

#TRESC {

    margin-top: 30px;
    text-align: center;
    background-color: #;
}


#STOPKA {
    clear: both;
    background-color: #;
    font-size: small;
    text-align: center;
    color: #616060;
}

A {
color : white;
text-decoration : none;
}




/* this is for the mouseout and default settings */
  
.on {
   color: white;
}
  
/* :hover is a pseudo selector to use to set the mouseover attributes */
.on:hover {
   color: #00b4ff;
}
-->
</style></head>

<body>

<div id="top">
<div id="NAGLOWEK"><img src="images/logo.png" alt="Logotypes"/></div>
<div id="menuspons">
    <div id="MENU"> <a class="on" href="index.html">news</a> <a class="on" href="portofolio.html">portofolio</a> <a class="on" href="contact.html">contact</a></div>
    <div id="SPONSOR"> ---sponsor--- </div>
  </div>
        
</div>
    <div id="TRESC">


        <img src="images/logo/1.png" class="obrazek" />
<br /><br /><br />
        <img src="images/logo/2.png" />
</div>

<div id="STOPKA">All right reserved by logotypes.pl<br />Copyright &copy; 2010</div>
</div>

</body>
</html>
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Problem z divami Dombus 5 3,963 17-02-2010, 00:50
Ostatni post: Dombus
  [CSS] Problem z divami Mr.Hyde 10 7,208 23-01-2010, 18:52
Ostatni post: webrunner1981
  Problem z divami meduzzz19 7 4,437 10-11-2009, 21:38
Ostatni post: Leja

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl