Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]divy i tła
hahaha
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 10.05.2008

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


Witam (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Co mogę zrobić by z lewej i prawej strony było jedno to samo tło a na środku inne
mam stronkę i po środku jakiś tekst zdjęcia itp
chiabym to zamieścić w takiej ramce (divy) i jej nadać tło
a pomiędzy tymi rzeczemi nadać jakieś inne tło

mam takie coś :
Kod
body {
    font:normal .75em/1.2em Verdana, Tahoma, Arial, Helvetica, sans-serif;
    background: url(images/white) #fff repeat-x;
    text-align:center;
    color:#2D2D2D;
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
piotrooo89
post
Post #2


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




żaden ze mnie specjalista w css ale moge spróbować.

  1. <head>
  2. <title>layout 3 kolumnowy</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta http-equiv="Content-language" content="pl" />
  5. <style type="text/css">
  6. body {
  7. margin: 0;
  8. padding: 0;
  9. background-color: #000;
  10. }
  11. #main {
  12. width: 750px;
  13. margin: 0 auto;
  14. }
  15. h1, form {
  16. margin: 0;
  17. padding: 0;
  18. }
  19. h1 {
  20. display: block;
  21. width: 750px;
  22. height: 209px;
  23. background-color: #999;
  24. }
  25. #contLeft {
  26. width: 174px;
  27. float: left;
  28. background-color: yellow;
  29. }
  30. #contRight {
  31. width: 186px;
  32. float: left;
  33. background-color: yellow;
  34. }
  35. .clear {
  36. width: 0px;
  37. height: 0px;
  38. margin: 0px;
  39. padding: 0px;
  40. font-size: 0px;
  41. clear: both;
  42. }
  43. #contCenter {
  44. width: 390px;
  45. float: left;
  46. font-size: 12px;
  47. background-color: #1aa;
  48. }
  49. #footer {
  50. height: 25px;
  51. color: #fff;
  52. text-align: center;
  53. background-color: #444;
  54. }
  55. </style>
  56. </meta></meta></head>
  57. <body id="main">
  58. <h1>NAGLOWEK</h1>
  59. <div id="contLeft">KOLUMNA LEWA</div>
  60. <div id="contCenter">SRODEK</div>
  61. <div id="contRight">KOLUMNA PRAWA</div>
  62. <div class="clear"></div>
  63. <div id="footer">STOPKA</div>
  64. </body>
  65. </html>


nie ma tu jeszcze marginów i paddingów ale to już chyba sam sobie wykombinujesz (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował piotrooo89 18.05.2008, 21:24:54
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: 7.10.2025 - 18:10