Footer trotz position: absolute, eine Breite von 100% geben.

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Footer trotz position: absolute, eine Breite von 100% geben.

    Jo Leute.
    Ich schaffe es einfach nicht meinem Footer eine Breite von 100% zu verpassen wenn ich position: absolute nutze um es immer am unteren Browserrand anzeigen zu lassen.

    Kann mir da wer aushelfen?
    Link: thouz.de

    CSS:

    CSS-Quellcode

    1. /* LESS Document */
    2. // VARIABLEN
    3. @bgcolor: #EF3B24;
    4. @link: #231F20;
    5. @text: #888588;
    6. @font: 'Gudea', sans-serif;
    7. //MAIN CSS/Reset
    8. body, html {
    9. /*background: radial-gradient(ellipse at center, #ffffff 0%,#e5e5e5 100%) fixed;*/
    10. background-color: #FFF;
    11. padding: 0;
    12. margin: 0;
    13. }
    14. //STYLES
    15. a {
    16. text-decoration: none;
    17. color: @link;
    18. -webkit-transition: color 500ms ease-in-out;
    19. -moz-transition: color 500ms ease-in-out;
    20. -o-transition: color 500ms ease-in-out;
    21. transition: color 500ms ease-in-out;
    22. }
    23. a:hover {
    24. color: #FFF;
    25. border-top: 5px solid @link;
    26. }
    27. a#logo {
    28. font-weight: bold;
    29. }
    30. header {
    31. background-color: @bgcolor;
    32. height: auto;
    33. width: 100%;
    34. padding: 3px 25px;
    35. font-family: @font;
    36. font-size: 20pt;
    37. }
    38. footer {
    39. background-color: @bgcolor;
    40. height: auto;
    41. widht: 100% !important;
    42. padding: 3px 25px;
    43. position: absolute;
    44. bottom: 0px;
    45. left: 0px;
    46. font-family: @font;
    47. font-size: 15pt;
    48. text-align: center;
    49. }
    Alles anzeigen


    HTML

    HTML-Quellcode

    1. <!doctype html>
    2. <html>
    3. <head>
    4. <meta name="description" content="LUECKENFUELLER LUECKENFUELLER">
    5. <meta name="keywords" content="LUECKENFUELLER">
    6. <meta name="author" content="LUECKENFUELLER LUECKENFUELLER">
    7. <meta charset="utf-8">
    8. <title>Thouz.de</title>
    9. <link rel="stylesheet/less" type="text/css" href="style/style.less">
    10. <link href='http://fonts.googleapis.com/css?family=Gudea' rel='stylesheet' type='text/css'>
    11. <script src="style/less.js" type="text/javascript"></script>
    12. </head>
    13. <body>
    14. <header>
    15. <a href="#" title="LUECKENFUELLER" id="logo"> Thouz.de </a>
    16. </header>
    17. <div id="content">
    18. Content Bereich!
    19. </div>
    20. <footer>
    21. The Footer
    22. </footer>
    23. </body>
    24. </html>
    Alles anzeigen