Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Jak zakodować taki układ strony głównej
bartus118
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 5.01.2015

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


Witam,

Chciałbym zrobić taki układ strony. Chciałbym żeby było to zawsze dopasowane do rozdzielczości ekranu, ale mi nie wychodzi.
Zaznaczam ze dopiero się uczę i raczkuję. Domyślnię wlaczę żeby bloki 2-5 były linkami do podstron.

Pomożecie?

Czy da się zrobić zeby bloki z zakresu 2-5 nakłądały się na jedynkę?

(IMG:https://imagizer.imageshack.us/v2/720x442q90/633/JOqRHj.png)



Ten post edytował bartus118 5.01.2015, 16:23:27
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bartus118
post
Post #2





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 5.01.2015

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


To co mam na teraz:


  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Dokument bez tytułu</title>
  5. <link rel="Stylesheet" type="text/css" href="style.css" />
  6. </head>
  7.  
  8.  
  9. <div id="NAGLOWEK">
  10. TEST1
  11.  
  12. </div>
  13.  
  14.  
  15. <!-- ################################################################################
    #################### -->
  16.  
  17. <div id="ONAS">
  18. TEST1
  19.  
  20. </div>
  21.  
  22. <!-- ################################################################################
    #################### -->
  23.  
  24. <div id="CZLONKOWIE">
  25.  
  26. TEST2
  27. </div>
  28.  
  29. <!-- ################################################################################
    #################### -->
  30.  
  31. <div id="KONCERTY">
  32.  
  33. TEST3
  34. </div>
  35.  
  36. <!-- ################################################################################
    #################### -->
  37.  
  38. <div id="MUZA">
  39.  
  40. TEST4
  41. </div>
  42.  
  43. <!-- ################################################################################
    #################### -->
  44.  
  45. <div id="KONTAKT">
  46. TEST5
  47.  
  48. </div>
  49.  
  50. <!-- ################################################################################
    #################### -->
  51.  
  52.  
  53. </body>
  54. </html>
  55.  


  1. @charset "utf-8";
  2. /* CSS Document */
  3.  
  4. html, body {
  5.  
  6. background-color: #CCC;
  7. margin: 0;
  8. padding: 0;
  9. }
  10.  
  11. #NAGLOWEK {
  12.  
  13. height:600px;
  14. background-color:#300;
  15.  
  16.  
  17. }
  18.  
  19. #ONAS {
  20.  
  21. height:200px;
  22. float: left;
  23. background-color: #0F0;
  24. }
  25.  
  26.  
  27. #CZLONKOWIE {
  28.  
  29. height:200px
  30. float: left;
  31. background-color: #0FC;
  32.  
  33. }
  34.  
  35. #KONCERTY {
  36.  
  37. height:200px
  38. float: left;
  39. background-color: #330;
  40.  
  41. }
  42.  
  43. #MUZA {
  44.  
  45. height:200px
  46. float: left;
  47. background-color: #C03;
  48.  
  49. }
  50.  
  51.  
  52. #KONTAKT {
  53.  
  54. height:200px
  55. float: left;
  56. background-color: #00C;
  57.  
  58.  
  59. }
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: 14.10.2025 - 07:14