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...
Div Höhe automatisch anpassen (100%)
Beitrag
<blockquote data-quote="irontom100" data-source="post: 1477865" data-attributes="member: 134620"><p>hallo leute</p><p>ich habe da ein kleines problem mit der erstellung einer Webseite</p><p>ich hoffe ihr könnt mir helfen</p><p>ich möchte in meinen template einen bestimmten div dazu bringen in 100%</p><p>höhe zu öffen er soll sich am browser fenster orientiren und wenn er mehr inhalt bekommt soll der div sich automatisch verlängeren </p><p>ich hoffe ihr könnt mir helfen</p><p>html</p><p>[code]</p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"></p><p><head></p><p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p><p><title>Untitled Document</title></p><p></p><p><link href="css/template.css" type="text/css" rel="stylesheet" /></p><p></p><p></head></p><p></p><p><body></p><p><div id="site"></p><p> <div id="top-login">Login</div></p><p> <div id="header">Header</div></p><p> <div id="content"></p><p> <div id="left">left</div></p><p> <div id="right">right</div></p><p> <div id="main"></p><p> [COLOR=Red]div soll eine höhe 100% haben also immer Automatisch an browser höhe angepast werden<br /></p><p> das soll dann auch für die anderen divs gelten ich schffe es immder nur vür einen Div<br /></p><p> ich danke euch für eure hilfe !!!!!!!!!!!!!!![/COLOR]</p><p></p><p> </div></p><p></p><p> </div></p><p></div></p><p></body></p><p></html></p><p>[/code]css</p><p>[code]</p><p></p><p>html</p><p>{</p><p> height: 100%;</p><p>}</p><p>body</p><p>{</p><p> background: url(../images/background.png);</p><p> background-position: top center;</p><p> margin: 0px;</p><p>}</p><p></p><p></p><p>#site</p><p>{</p><p> background: url(../images/rahmen.png);</p><p> background-position: top center;</p><p> width: 1030px;</p><p> height: 100%;</p><p> margin: 0px auto;</p><p>}</p><p></p><p>#top-login</p><p>{</p><p> background-color: #000099;</p><p> height: 40px;</p><p> width: 980px;</p><p> margin: 0px auto;</p><p>}</p><p>#header</p><p>{</p><p> background: #660099;</p><p> height: 193px;</p><p> margin: 0px auto;</p><p> width: 980px;</p><p>}</p><p></p><p>#content</p><p>{</p><p> background: #FFFF00;</p><p> margin: 0px auto;</p><p> width: 980px;</p><p>}</p><p></p><p>#left</p><p>{</p><p> background: #FF0000;</p><p> width: 160px;</p><p> float: left;</p><p>}</p><p>#right</p><p>{</p><p> background: #FF0000;</p><p> width: 160px;</p><p> float: right;</p><p>}</p><p>#main</p><p>{</p><p> background: #888888;</p><p> padding-left: 5px;</p><p> padding-right: 5px;</p><p> margin: 0px 160px 0px 160px;</p><p>}</p><p>[/code]<u></u></p><p><u></u></p><p><u></u></p><p><u></u></p><p><u></u></p></blockquote><p></p>
[QUOTE="irontom100, post: 1477865, member: 134620"] hallo leute ich habe da ein kleines problem mit der erstellung einer Webseite ich hoffe ihr könnt mir helfen ich möchte in meinen template einen bestimmten div dazu bringen in 100% höhe zu öffen er soll sich am browser fenster orientiren und wenn er mehr inhalt bekommt soll der div sich automatisch verlängeren ich hoffe ihr könnt mir helfen html [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="css/template.css" type="text/css" rel="stylesheet" /> </head> <body> <div id="site"> <div id="top-login">Login</div> <div id="header">Header</div> <div id="content"> <div id="left">left</div> <div id="right">right</div> <div id="main"> [COLOR=Red]div soll eine höhe 100% haben also immer Automatisch an browser höhe angepast werden<br /> das soll dann auch für die anderen divs gelten ich schffe es immder nur vür einen Div<br /> ich danke euch für eure hilfe !!!!!!!!!!!!!!![/COLOR] </div> </div> </div> </body> </html> [/code]css [code] html { height: 100%; } body { background: url(../images/background.png); background-position: top center; margin: 0px; } #site { background: url(../images/rahmen.png); background-position: top center; width: 1030px; height: 100%; margin: 0px auto; } #top-login { background-color: #000099; height: 40px; width: 980px; margin: 0px auto; } #header { background: #660099; height: 193px; margin: 0px auto; width: 980px; } #content { background: #FFFF00; margin: 0px auto; width: 980px; } #left { background: #FF0000; width: 160px; float: left; } #right { background: #FF0000; width: 160px; float: right; } #main { background: #888888; padding-left: 5px; padding-right: 5px; margin: 0px 160px 0px 160px; } [/code][U] [/U] [/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...
Div Höhe automatisch anpassen (100%)
Oben