Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Layout div 100% height + floaty
#4
to naprawdę jest takie trudne powklejać sobie "overflow" w rożnych miejscach i poobserwować jak zachowuje się layout

Kod:
<html style="height: 100%">
<head>
</head>
<body style="height: 100%;">
    <div style="width: 1000px; margin: 0px auto; background: orange; height: 100px;">NAGŁÓWEK</div>
    <div style="width: 1000px; margin: 0px auto; background: yellow; min-height: 100%; overflow:hidden;">
        <div style="width: 200px; float: left; background: blue; height: 100%; padding-left: 5px; position: relative">
          <div style="width: 160px;   background: black; color: white" >
          <br><br><br>
          MENU ROZSUWANE
          <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
          </div>
          <div style="width: 160px;  background: red; height: 100%">
               REKLAMA (100% height )
          </div>
        </div>
        <div style="float: right; overflow:hidden;">
                        <div style="width: 700px;background: red; height: 200px">
                BANER
            </div>
            <div style="width: 700px; overflow:hidden;">            
                <div style="width: 500px;float: left;background: blue;">
                TREŚĆ WSZYSTKO ROZCIĄGA W DÓŁ
                <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
                <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
                <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
                </div>                
                <div style="float: right;height: 100%;background: black;width: 200px;">
                PASEK Z INFO (100% height )
                </div>
            </div>
            
        </div>
        
    </div>
    <div style="width: 1000px; margin: 0px auto; background: orange; height: 100px; clear:both;"></div>
</body>
</html>
Odpowiedz


Wiadomości w tym wątku
Layout div 100% height + floaty - przez bor1904 - 19-03-2013, 05:00
RE: Layout div 100% height + floaty - przez Engine - 19-03-2013, 05:07
RE: Layout div 100% height + floaty - przez bor1904 - 19-03-2013, 07:37
RE: Layout div 100% height + floaty - przez Engine - 19-03-2013, 14:56
RE: Layout div 100% height + floaty - przez bor1904 - 19-03-2013, 15:26
RE: Layout div 100% height + floaty - przez Engine - 19-03-2013, 15:53

Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  [CSS] div w dvie - wyśrodkowane auto height Ganesa 13 10,508 23-12-2012, 20:27
Ostatni post: Ganesa
  min-height: 100% nie dziala dla DIV fate 9 7,396 31-03-2012, 20:43
Ostatni post: fate
  [CSS] [PHP?] IE sypie layout (kolumny w jquery) [wordpress] pwlj 0 1,867 09-03-2012, 15:31
Ostatni post: pwlj
  Kodowanie sklepu z layout'u fritinancy 1 2,042 17-11-2011, 23:45
Ostatni post: Kartofelek
  layout pod CMS s.w.n.h 7 6,559 31-07-2011, 23:21
Ostatni post: kmd

Skocz do:


Użytkownicy przeglądający ten wątek:
Sponsorzy i przyjaciele
SeoHost.pl