Guest User

Untitled

a guest
Apr 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="page">
  6. <div id="content">
  7. <h1>Footer always in bottom</h1>
  8. <p>quequeisso.</p>
  9. <p>quequeisso2.</p>
  10. </div>
  11. <div id="footer">
  12. <p>footer here</p>
  13. </div>
  14. </div>
  15. </body>
  16. </html>
  17.  
  18. E o CSS abaixo:
  19.  
  20.  
  21. * {
  22. padding: 0px;
  23. margin: 0px;
  24. }
  25.  
  26. html, body {
  27. height: 100%;
  28. }
  29.  
  30. #page {
  31. min-height: 100%;
  32. position: relative;
  33. }
  34.  
  35. #footer {
  36. width: 100%;
  37. bottombottom: 0;
  38. position: absolute;
  39. }
Add Comment
Please, Sign In to add comment