Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> tabelki css ;/ odpowiednia szerokosc
AZPR
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 28.12.2005

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


mam "strone" html

  1. <title>asd</title>
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  3. <link rel="stylesheet" href="styl.css" type="text/css">
  4. </head>
  5.  
  6.  
  7. <p></p>
  8.  
  9. <table id="duza">
  10.  
  11. <tr>
  12. <td class="pasek">pasek</td>
  13. </tr>
  14. <tr>
  15. <td class="slajd">slajd</td>
  16. <td class="menu">menu</td>
  17. </tr>
  18. <tr>
  19. <td height="118">zawartosc</td>
  20. </tr>
  21. <tr>
  22. <td class="info">info</td>
  23. </tr>
  24.  
  25. </body>
  26. </html>


oraz plik css:

  1. body {
  2. background: #FFFFFF;
  3. text-align: center;
  4. margin: auto;
  5. padding: 0;
  6.  
  7. }
  8.  
  9. table, td {
  10. padding: 0;
  11. margin:0;
  12. border: none;
  13. border-collapse: collapse;
  14. border-spacing: 0;
  15. }
  16.  
  17. * {
  18. font-family: verdana, tahoma, arial, sans-serif;
  19. color: #000000;
  20. font-size: 10px;
  21. }
  22.  
  23. /* glowna ramka */
  24.  
  25. #duza {
  26. width: 624px;
  27. height: 469px;
  28. border-left: 1px solid #c0c0c0;
  29. border-right: 1px solid #c0c0c0;
  30. border-bottom: 1px solid #c0c0c0;
  31. border-top: 1px solid #c0c0c0;
  32. text-align: left;
  33. margin-left: auto;
  34. margin-right: auto;
  35. vertical-align: top;
  36. border-collapse: collapse;
  37. border-spacing: 0;
  38. }
  39.  
  40. /* slajd*/
  41.  
  42. .slajd {
  43. width: 230px;
  44. height: 346px;
  45. background: url(img/menu.jpg) #FFFFFF;
  46.  
  47. }
  48.  
  49. /* menu */
  50.  
  51. .menu {
  52. width: 393px;
  53. height: 71px;
  54. background: url(img/menu.jpg) #FFFFFF;
  55.  
  56. }
  57.  
  58.  
  59. /* srodek glownej tabeli */
  60.  
  61. .srodek {
  62. width: 624px;
  63. height: 346px;
  64. background: url(img/s1.jpg) #FFFFFF;
  65. }
  66.  
  67.  
  68. /* dolny pasek */
  69.  
  70. .info {
  71. width: 624px;
  72. height: 105px;
  73. background: url(img/i1.jpg) #000000;
  74. }


tylko ze jak przypisze clase do tableki to sie wszystko rozjerzdza ;/ nie wiem jak sobie z tym poradzic... ;/ a wszytko ma byc takiej wielkosci jak podalem w css ;/


--------------------
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: 22.08.2025 - 09:08