Jak zrobić stopkę w css która będzie zawsze u dołu strony www ?: Różnice pomiędzy wersjami

Z Podręcznik Administratora by OPZ SGU
Przejdź do nawigacji Przejdź do wyszukiwania
(Utworzył nową stronę „<source lang="html4strict"> <html> <head> <link rel="stylesheet" href="layout.css" ... /> </head> <body> <div class="wrapper"> <…”)
 
m (Zastępowanie tekstu - "<source lang="css">" na "<pre>")
 
(Nie pokazano 10 wersji utworzonych przez 5 użytkowników)
Linia 1: Linia 1:
<source lang="html4strict">
<pre>
<html>
<html>
     <head>
     <head>
Linia 14: Linia 14:
     </body>
     </body>
</html>
</html>
</source>
</pre>


<source lang="css">
<pre>
* {
* {
margin: 0;
margin: 0;
Linia 27: Linia 27:
height: auto !important;
height: auto !important;
height: 100%;
height: 100%;
margin: 0 auto -4em;
margin: 0 auto -100px;
}
}
.footer, .push {
.footer, .push {
height: 4em;
height: 100px;
margin-top:120px;
}
}
</source>
</pre>
 
 
[[Category:HTML]]

Aktualna wersja na dzień 14:35, 18 lut 2018

<html>
    <head>
        <link rel="stylesheet" href="layout.css" ... />
    </head>
    <body>
        <div class="wrapper">
            <p>Your website content here.</p>
            <div class="push"></div>
        </div>
        <div class="footer">
            <p>Copyright (c) 2008</p>
        </div>
    </body>
</html>
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -100px;
}
.footer, .push {
height: 100px;
margin-top:120px;
}