Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> pozycja div'ow, problem z float left
TroYan
post
Post #1





Grupa: Zarejestrowani
Postów: 56
Pomógł: 1
Dołączył: 19.04.2004
Skąd: Bytom Odrz.

Ostrzeżenie: (0%)
-----


witam, mam następujący problem. otóż mam sobie taki kodzik strozny:

  1. <div id="logo">LOGO</div>
  2.  
  3. <div id="body">
  4. <div id="srodek">
  5. <div id="menu_bar">menu gorne</div>
  6. <div id="zawartosc">
  7.  
  8. <div id="menu_side">
  9. MENU_boczne
  10. </div>
  11.  
  12. <div id="tresc">
  13. treść strony
  14. </div>
  15. </div>
  16. </div>
  17. <div id="footer">jakas stopka</div>
  18. </div>
  19. </body></html>



do tego css:

Kod
body {

text-align: center;
color: black;
font-size: 11px;
font-family: arial;
background-color:    #cc0000;

}

#body {

position: absolute;
top: 150px;
left: 0px;
width: 100%;
text-align: center;
margin: 0 auto;


}


div {

margin-top: 5px;
margin-bottom: 5px;
margin-left: 5px;
margin-right: 5px;


}

#logo {

position: absolute;
top: 0px;
left: 0px;
margin: 0 0 0 0;
width: 100%;
height: 200px;
background: url("bglogo.png");


}

#srodek {

width: 800px;
min-height: 200px;
margin: 0 auto;

}

#menu_bar {

width: 800px;
border: dashed 1px gray;
height: 30px;
margin: 0 0 0 0;
-moz-border-radius: 4px;
background-color:     #F0E68C;

}



#zawartosc {

width: 800px;
border: dashed 1px gray;
margin: 0 0 0 0;
-moz-border-radius: 4px;
background-color: #ffcc00;

}

#menu_side {

width: 150px;
border: solid 2px white;
float: left;

}

#tresc {

width: 620px;
border: solid 2px white;
float: left;

}


#footer {

postion: relative;
bottom: 0px;
left: 0px;
width: 100%;
height: 200px;
background: url("bgfoot.png");
margin: 0 0 0 0;


}


w firefoxie napis ze stopki ucieka mi tak jakby też miał właściwość "float: left;" a takiej oczywiście nie ma. Internet Explorer 7 pokazuje stronkę tak jakbym chciał żeby wyglądała, ale (paradoksalnie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) ) domyślam się, że to raczej coś nie tak z explorerem (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

link: http://trn.cba.pl/index.html
link do css: http://trn.cba.pl/style.css
Go to the top of the page
+Quote Post
trucksweb
post
Post #2





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


  1. #footer {
  2.  
  3. postion: relative;
  4. bottom: 0px;
  5. left: 0px;
  6. width: 100%;
  7. height: 200px;
  8. clear: both;
  9.  
  10. background: url("bgfoot.png");
  11. margin: 0 0 0 0;
  12.  
  13.  
  14. }
Go to the top of the page
+Quote Post
TroYan
post
Post #3





Grupa: Zarejestrowani
Postów: 56
Pomógł: 1
Dołączył: 19.04.2004
Skąd: Bytom Odrz.

Ostrzeżenie: (0%)
-----


ok napis w porządku tylko jeszcze div "zawartosc" się nie rozciąga, da się coś z tym zrobić?
Go to the top of the page
+Quote Post
trucksweb
post
Post #4





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


jak sie ma rozciagac ?
przeciez dales mu na sztywno szerokosc 800px ?
Go to the top of the page
+Quote Post
TroYan
post
Post #5





Grupa: Zarejestrowani
Postów: 56
Pomógł: 1
Dołączył: 19.04.2004
Skąd: Bytom Odrz.

Ostrzeżenie: (0%)
-----


w dół. bo div zawartosc ma w sobie dwa divy, menu_side i tresc. i (pod explorerem widac, ma żółte tło) i zależnie od wysokości "tresc" zmieniałby swoją wysokość, jednak pod firefoxem tak się nie dzieje
Go to the top of the page
+Quote Post
Shili
post
Post #6





Grupa: Zarejestrowani
Postów: 1 085
Pomógł: 231
Dołączył: 12.05.2008

Ostrzeżenie: (0%)
-----


Spróbuj dodać styl overflow: hidden;
Go to the top of the page
+Quote Post
TroYan
post
Post #7





Grupa: Zarejestrowani
Postów: 56
Pomógł: 1
Dołączył: 19.04.2004
Skąd: Bytom Odrz.

Ostrzeżenie: (0%)
-----


dziala, dzieki
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 04:50