Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css]Problem z wyśrodkowaniem
defox
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 21.02.2008

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


Witam. Mam problem z wyśrodkowaniem strony o kodzie zamieszczonym poniżej.
Główną częścią strony jest "Tabela_01" więc do niej dodałem informacje o marginesach. Dodanie tego do ciała dokumentu również nic nie zmienia. Proszę o pomoc.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Bez nazwy 1</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
  6.  
  7. <style type="text/css">
  8. <!--
  9.  
  10.  
  11.  
  12. #Tabela_01 {
  13. position:absolute;
  14. left:0px;
  15. top:0px;
  16. width:760px;
  17. height:800px;
  18. margin-left: auto;
  19. margin-right: auto;
  20. }
  21.  
  22. #Bez-nazwy-1-01_ {
  23. position:absolute;
  24. left:0px;
  25. top:0px;
  26. width:760px;
  27. height:550px;
  28. }
  29.  
  30. #Bez-nazwy-1-02_ {
  31. position:absolute;
  32. left:0px;
  33. top:550px;
  34. width:760px;
  35. height:250px;
  36. }
  37.  
  38. -->
  39. </style>
  40.  
  41. </head>
  42. <body style="background-color:#FFFFFF;">
  43.  
  44. <div id="Tabela_01">
  45. <div id="Bez-nazwy-1-01_">
  46.  
  47. </div>
  48. <div id="Bez-nazwy-1-02_">
  49.  
  50. </div>
  51. </div>
  52.  
  53. </body>
  54. </html>


Ten post edytował defox 21.02.2008, 17:04:51
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: 21.12.2025 - 17:11