Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]display:inline nie działa
sweter
post
Post #1





Grupa: Zarejestrowani
Postów: 623
Pomógł: 11
Dołączył: 1.01.2009
Skąd: Wrocław

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


Mam pewnego diva o nazwie #top, a w nim trzy #top-right, #top-middle i #top-right z display ustawionym na inline. Nie chcą się one jednak wyświetlić. Czemu? #top ma display:block;

EDIT:
to może zadam jeszcze jedno pytanie:
jak Wy radzicie sobie z umieszczeniem elementów w jednej linii, tak jakby były w tabelach?
Bo ja dotychczas stosowałem table-cell, jednak zauważyłem, że nie działa to w IE 6 (IMG:style_emoticons/default/sad.gif)

Ten post edytował sweter 30.08.2009, 20:03:49
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sweter
post
Post #2





Grupa: Zarejestrowani
Postów: 623
Pomógł: 11
Dołączył: 1.01.2009
Skąd: Wrocław

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


  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  6. <title>Globetrotter</title>
  7. <link rel="Stylesheet" type="text/css" href="style2.css" />
  8. </head>
  9. <body>
  10. <div id="strona_top">
  11. <div id="strona_top-left"></div>
  12. <div id="strona_top-middle"></div>
  13. <div id="strona_top-right"></div>
  14. </div>
  15. <div id="strona">
  16.  
  17. </div>
  18. <div id="strona_bottom">
  19. <div id="strona_bottom-left"></div>
  20. <div id="strona_bottom-middle"></div>
  21. <div id="strona_bottom-right"></div>
  22. </div>
  23. </center>
  24. </body>
  25. </html>
  26.  
  27.  


Plik css wygląda tak:

  1.  
  2. #strona {
  3. width:740px;
  4. text-align:left;
  5. background-image:url('./img/tlo-center.png');
  6. }
  7. #strona_top {
  8. width:740px;
  9. height:30px;
  10. text-align:left;
  11. }
  12. #strona_top-left {
  13. width:30px;
  14. height:30px;
  15. background-image:url('./img/top-left.png');
  16. display:inline;
  17. }
  18. #strona_top-middle {
  19. width:680px;
  20. height:30px;
  21. background-image:url('./img/top-middle.png');
  22. display:inline;
  23. }
  24. #strona_top-right {
  25. width:30px;
  26. height:30px;
  27. background-image:url('./img/top-right.png');
  28. display:inline;
  29.  }
  30.  
  31.  


Problem w tym, że ten górny div #strona_top się nie wyświetla (IMG:style_emoticons/default/sad.gif)

Go to the top of the page
+Quote Post

Posty w temacie


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: 11.10.2025 - 09:13