Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]Problem z divem jednym pod drugim i height
degistivepl
post 5.04.2018, 14:05:43
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 5.04.2018

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


Cześć mam problem z elementami jeden pod drugim w CSS.
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. font-family: sans-serif;
  5. }
  6. header {
  7. background-color: red;
  8. text-align: center;
  9. padding: 20px;
  10. width: 100%;
  11. }
  12. aside {
  13. background-color: #3b3b3b;
  14. width: 200px;
  15. position: absolute;
  16. height: 100%;
  17.  
  18. }

  1. <header>
  2. <a href="#" class="link"><i class="fa fa-reorder"></i>Zamówienia</a>
  3. <a href="#" class="link"><i class="fa fa-home"></i>Strona główna</a>
  4. </header>
  5. <aside>
  6. </aside>
  7. <main>
  8. </main>
  9. <footer>
  10.  
  11. </footer>
  12. </body>

Problem w tym, że dodaje mi suwak na długość elementu header i nie potrafię sobie z tym poradzić.
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 03:26