PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Webseite am oberen (Browser)rand
Beitrag
<blockquote data-quote="leohh" data-source="post: 961849" data-attributes="member: 205642"><p><strong>AW: Webseite am oberen (Browser)rand</strong></p><p></p><p>Ich wusste, dass ich noch ein Beispiel dazu hab.</p><p>Ich hab das gleich mal als uebungsdatei hergenommen um die <a href="http://www.cssstickyfooter.com/" target="_blank">cssstickyfooter</a>-Methode etwas einzustudieren.</p><p>Bilder die dazu benoetigt werden, sind exakt 2:</p><p>Einmal der sich horizontal wiederholende header</p><p></p><p></p><p>Noch einmal die sich vertikal wiederholende Sidebar</p><p></p><p></p><p>Mehr Grafiken, brauchst du dafuer nicht! </p><p></p><p>Zum folgenden Codebeispiel, werde ich nicht viel sagen, da es sich von selbst erklaert.</p><p>[html]</p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" ></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; UTF-8" /></p><p> </p><p> <title>index</title></p><p></p><p> <style type="text/css" media="screen, projection"></p><p> </p><p> /* reset </p><p> ----------------------------------------------------------------------------------------*/</p><p> * { margin: 0; padding: 0; }</p><p> </p><p> a { text-decoration: none; outline: none; color: #000; }</p><p> a img { border: 0; }</p><p> </p><p> ol, ul { list-style: none; }</p><p> q:before, q:after, </p><p> blockquote:before, blockquote:after { content: ""; }</p><p> </p><p> /* footer stick-alt</p><p> ----------------------------------------------------------------------------------------*/</p><p> html, body, #page-wrap {height: 100%;}</p><p> body > #page-wrap {height: auto; min-height: 100%;}</p><p></p><p> /* CLEAR FIX*/</p><p> .clearfix:after {content: ".";</p><p> display: block;</p><p> height: 0;</p><p> clear: both;</p><p> visibility: hidden;}</p><p> .clearfix {display: inline-block;}</p><p> /* Hides from IE-mac \*/</p><p> * html .clearfix { height: 1%;}</p><p> .clearfix {display: block;}</p><p> /* End hide from IE-mac */</p><p> </p><p> </p><p> /* rebuild</p><p> ----------------------------------------------------------------------------------------*/</p><p> body { </p><p> font: 62.5%/1.5 "Lucida Grande", "Lucida Sans", Tahoma, Verdana, sans-serif; </p><p> background: #000 url() repeat;</p><p> color: #333; </p><p> text-align:center; </p><p> }</p><p> </p><p> #page-wrap {</p><p> background: #fff url(Bilder/bar.jpg) repeat-y 650px 0;</p><p> width: 800px;</p><p> margin: 0 auto;</p><p> text-align: left;</p><p> </p><p> }</p><p> </p><p> #main {</p><p> tet-align: left;</p><p> padding-bottom: 150px;</p><p> </p><p> }</p><p> </p><p> /* header</p><p> --------------------------------------------------------------------------------------- */</p><p> #header {</p><p> background: #fff url(Bilder/main_header.jpg) repeat-x 0 20px;</p><p> height: 101px;</p><p> text-align: right; /* overwriting the text orientation */</p><p> </p><p> }</p><p> #header h1 {</p><p> width: 629px;</p><p> float: left;</p><p> margin-top: 25px ;</p><p> </p><p> }</p><p> #header strong {</p><p> display: block;</p><p> font-size: .8em;</p><p> margin-top: -10px;</p><p> </p><p> }</p><p> #header span {</p><p> background: url(Bilder/bar.jpg) repeat-y;</p><p> float: right;</p><p> margin-right: 20px;</p><p> width: 130px; height: 101px;</p><p> </p><p> }</p><p> </p><p> /* content</p><p> --------------------------------------------------------------------------------------- */</p><p> #content {</p><p> width: 609px; /* width + padding-left + padding-right = absolute Breite */</p><p> float: left;</p><p> padding-bottom: 9em;</p><p> padding: 10px 0 0;</p><p> padding-left: 20px; </p><p> padding-right: 20px;</p><p> </p><p> }</p><p> </p><p> /* sidebar</p><p> --------------------------------------------------------------------------------------- */</p><p> #sidebar {</p><p> width: 141px; /* width + padding-left = absolute Breite */</p><p> float: right;</p><p> padding-top: 10px;</p><p> padding-left: 10px;</p><p> </p><p> }</p><p> </p><p> /* footer</p><p> --------------------------------------------------------------------------------------- */</p><p> #footer {</p><p> position: relative;</p><p> background: #000 url('Bilder/bar.jpg') repeat-y 650px 0;</p><p> margin: -20px auto 0;</p><p> width: 800px; height: 20px;</p><p> text-align: left;</p><p> clear:both;</p><p> } </p><p> </p><p> }</p><p> </p><p> /* general classes</p><p> ----------------------------------------------------------------------------------------*/</p><p> .hide, .print-logo, .close-button{ display:none; }</p><p> .clear { clear:both; } </p><p> .right { float: right; } </p><p> .left { float: left; }</p><p> .preforient { text-align: left; } /* prefered orientation of the text */</p><p> </p><p> </style></p><p> </p><p> </head></p><p> <body id="index"></p><p> </p><p> <div id="page-wrap"></p><p> </p><p> <div id="main" class="clearfix"></p><p> <div id="header" class="clearfix"></p><p> <h1>Header area<strong>subtext</strong></h1></p><p> <span></span></p><p> </p><p> </div></p><p> </p><p> <div id="content"></p><p> <h3>Content area</h3></p><p> <p></p><p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><p> </p></p><p> </p><p> </div></p><p> <div id="sidebar" class="clearfix"></p><p> <h3>Sidbar area</h3></p><p> <ul id="navi"></p><p> <li><a href="#" title="Menuepunkt1">Menuepunkte1</a></li></p><p> <li><a href="#" title="Menuepunkt2">Menuepunkte2</a></li></p><p> <li><a href="#" title="Menuepunkt3">Menuepunkte3</a></li></p><p> <li><a href="#" title="Menuepunkt4">Menuepunkte4</a></li></p><p> <li><a href="#" title="Menuepunkt5">Menuepunkte5</a></li></p><p> <li><a href="#" title="Menuepunkt6">Menuepunkte6</a></li></p><p> </p><p> </ul></p><p> </p><p> </div></p><p> </p><p> </div></p><p> </p><p> </div></p><p> </p><p> <div id="footer" class=""></div></p><p> </p><p> </body></p><p></html></p><p>[/html]</p><p>[/html]</p></blockquote><p></p>
[QUOTE="leohh, post: 961849, member: 205642"] [b]AW: Webseite am oberen (Browser)rand[/b] Ich wusste, dass ich noch ein Beispiel dazu hab. Ich hab das gleich mal als uebungsdatei hergenommen um die [URL="http://www.cssstickyfooter.com/"]cssstickyfooter[/URL]-Methode etwas einzustudieren. Bilder die dazu benoetigt werden, sind exakt 2: Einmal der sich horizontal wiederholende header Noch einmal die sich vertikal wiederholende Sidebar Mehr Grafiken, brauchst du dafuer nicht! Zum folgenden Codebeispiel, werde ich nicht viel sagen, da es sich von selbst erklaert. [html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" > <head> <meta http-equiv="content-type" content="text/html; UTF-8" /> <title>index</title> <style type="text/css" media="screen, projection"> /* reset ----------------------------------------------------------------------------------------*/ * { margin: 0; padding: 0; } a { text-decoration: none; outline: none; color: #000; } a img { border: 0; } ol, ul { list-style: none; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } /* footer stick-alt ----------------------------------------------------------------------------------------*/ html, body, #page-wrap {height: 100%;} body > #page-wrap {height: auto; min-height: 100%;} /* CLEAR FIX*/ .clearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;} .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix { height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */ /* rebuild ----------------------------------------------------------------------------------------*/ body { font: 62.5%/1.5 "Lucida Grande", "Lucida Sans", Tahoma, Verdana, sans-serif; background: #000 url() repeat; color: #333; text-align:center; } #page-wrap { background: #fff url(Bilder/bar.jpg) repeat-y 650px 0; width: 800px; margin: 0 auto; text-align: left; } #main { tet-align: left; padding-bottom: 150px; } /* header --------------------------------------------------------------------------------------- */ #header { background: #fff url(Bilder/main_header.jpg) repeat-x 0 20px; height: 101px; text-align: right; /* overwriting the text orientation */ } #header h1 { width: 629px; float: left; margin-top: 25px ; } #header strong { display: block; font-size: .8em; margin-top: -10px; } #header span { background: url(Bilder/bar.jpg) repeat-y; float: right; margin-right: 20px; width: 130px; height: 101px; } /* content --------------------------------------------------------------------------------------- */ #content { width: 609px; /* width + padding-left + padding-right = absolute Breite */ float: left; padding-bottom: 9em; padding: 10px 0 0; padding-left: 20px; padding-right: 20px; } /* sidebar --------------------------------------------------------------------------------------- */ #sidebar { width: 141px; /* width + padding-left = absolute Breite */ float: right; padding-top: 10px; padding-left: 10px; } /* footer --------------------------------------------------------------------------------------- */ #footer { position: relative; background: #000 url('Bilder/bar.jpg') repeat-y 650px 0; margin: -20px auto 0; width: 800px; height: 20px; text-align: left; clear:both; } } /* general classes ----------------------------------------------------------------------------------------*/ .hide, .print-logo, .close-button{ display:none; } .clear { clear:both; } .right { float: right; } .left { float: left; } .preforient { text-align: left; } /* prefered orientation of the text */ </style> </head> <body id="index"> <div id="page-wrap"> <div id="main" class="clearfix"> <div id="header" class="clearfix"> <h1>Header area<strong>subtext</strong></h1> <span></span> </div> <div id="content"> <h3>Content area</h3> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> </div> <div id="sidebar" class="clearfix"> <h3>Sidbar area</h3> <ul id="navi"> <li><a href="#" title="Menuepunkt1">Menuepunkte1</a></li> <li><a href="#" title="Menuepunkt2">Menuepunkte2</a></li> <li><a href="#" title="Menuepunkt3">Menuepunkte3</a></li> <li><a href="#" title="Menuepunkt4">Menuepunkte4</a></li> <li><a href="#" title="Menuepunkt5">Menuepunkte5</a></li> <li><a href="#" title="Menuepunkt6">Menuepunkte6</a></li> </ul> </div> </div> </div> <div id="footer" class=""></div> </body> </html> [/html] [/html] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Webseite am oberen (Browser)rand
Oben