Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Wyśrodkowanie strony
daniel1302
post
Post #1





Grupa: Zarejestrowani
Postów: 602
Pomógł: 30
Dołączył: 1.08.2007
Skąd: Nowy Sącz

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


Witam mam taki CSS
  1. *{
  2. background-color : #000000;
  3. }
  4. #header
  5. {
  6. background-image : url("images/header.jpg");
  7. width : 989px;
  8. height : 300px;
  9. overflow: auto;
  10. position : absolute;
  11. top : 0px;
  12. right : 10px;
  13. }
  14. #title
  15. {
  16. font-family : Georgia, Tahoma, sans-serif;
  17. font-size : 22px;
  18. font-variant : small-caps;
  19. font-style : italic;
  20. font-weight : bold;
  21. letter-spacing : 1px;
  22. overflow: auto;
  23. position : absolute;
  24. top : -45px;
  25. right : 192px;
  26. }
  27. #leftMenu
  28. {
  29. background-image : url("images/leftMenu.jpg");
  30. background-repeat : repeat-y;
  31. width : 187px;
  32. min-height: 550px;
  33. height:auto;
  34. height: 100%;
  35. min-height: 350px;
  36. overflow: auto;
  37. position : absolute;
  38. top : 300px;
  39. right : 812px;
  40. }
  41. #leftField
  42. {
  43. margin-left : 5px;
  44. }
  45. #leftLine
  46. {
  47. background-image : url("images/leftLine.jpg");
  48. background-repeat : repeat-y;
  49. position : absolute;
  50. top : 300px;
  51. right : 800px;
  52. width : 13px;
  53. min-height: 550px;
  54. height:auto;
  55. height: 100%;
  56. }
  57. #centerColumn
  58. {
  59. width : 585px;
  60. position : absolute;
  61. top : 360px;
  62. right : 210px;
  63. }
  64. #rightLine
  65. {
  66. background-image : url("images/rightLine.jpg");
  67. background-repeat : repeat-y;
  68. position : absolute;
  69. top : -60px;
  70. right : -13px;
  71. width : 13px;
  72. min-height: 550px;
  73. height:auto;
  74. height: 100%;
  75. }
  76. #rightMenu
  77. {
  78. background-image : url("images/rightMenu.jpg");
  79. background-repeat : repeat-y;
  80. padding-right : 0px;
  81. width : 187px;
  82. overflow: auto;
  83. position : absolute;
  84. top : -60px;
  85. right : -200px;
  86. min-height: 550px;
  87. height:auto;
  88. height: 100%;
  89. }
  90. #rightField
  91. {
  92. margin-right : 5px;
  93. }

i jeśli mam rozdzielczość 1024x768
to jest OK
ale jeśli ja pracuję na nowym komputerze(1152x864) to strona jest po prawej stronie i chce ją wyśrodkować
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 19.08.2025 - 14:32