Jetzt geht es an die Version 3 des Multi Div Layouts mit Klick Dropdown…
Der HTML Quelltext:
<!doctype html>
<html lang="de">
<head>
<title>Webdesign </title>
<link rel="stylesheet" href="01_CSS/01_zentrale.css" type="text/css" />
<meta charset="UTF-8"/>
</head>
<body>
<div id="wrapper"> <!-- wrapper-Bereich Anfang -->
<header>
</header>
<div id="topnavigation">
<ul>
<li><a href="top1.html">Topnews 1</a></li>
<li><a href="top2.html">Topnews 2</a></li>
<li><a href="top3.html">Topnews 3</a></li>
<li><a href="top4.html">Topnews 4</a></li>
</ul>
</div>
<nav>
<article>
<ul>
<li><a href="index.html">Startseite</a></li>
<li><a href="archiv.html">Archiv</a></li>
<li><a href="impressum.html">Impressum</a></li>
</ul>
</article>
<br />
<article>
<h1>Updates:</h1>
<p>
Datum einfügen...
</p>
</article>
<br />
<article>
<h1>Spalte 1</h1>
<p>
Dies ist Artikel 1 in Spalte 1 unter der Navigation.
</p>
</article>
<br />
</nav> <!-- Ende von Spalte 1 -->
<main>
<article>
<h1>Multi-Div Version 3 mit Klick Dropdown:</h1>
<p>
Multi-Div Version 3 mit Klick Dropdown...
</p>
</article>
<br />
</main>
<div id="spalte3">
<article>
<h1>Spalte 3</h1>
<p>
Dies ist der Artikel 1 in Spalte 3
</p>
</article>
<br />
<article>
<h1>Spalte 3</h1>
<p>
Dies ist der Artikel 2 in Spalte 3
</p>
</article>
<br />
<article>
<h1>Spalte 3</h1>
<p>
Dies ist der Artikel 3 in Spalte 3
</p>
</article>
<br />
</div> <!-- Ende von Spalte 3 -->
</div> <!-- wrapper-Bereich Ende -->
</body>
</html>
Der CSS Code für die Datei “01_zentrale.css“:
@import url(02_fundament.css);
@import url(03_body.css);
@import url(04_wrapper.css);
@import url(05_header.css);
@import url(06_navigation.css);
@import url(07_content.css);
@import url(08_artikel.css);
@import url(09_spalte3.css);
@import url(10_topnavigation.css);
@import url(11_naviblox.css);
@import url(12_spalte1.css);
Der CSS Code für die Datei “02_fundament.css“:
@media all {
* {
padding: 0;
margin: 0;
}
html {
height: 101%;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “03_body.css“:
@media all {
body {
color: black;
background-color: white;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “04_wrapper.css“:
#wrapper {
margin: 5px;
background-color: white;
}
Der CSS Code für die Datei “05_header.css“:
@media all {
header {
height: 80px;
background-image: url(../cpm-header01.gif);
background-repeat: no-repeat;
background-color: seagreen;
color: white;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
border-style: solid;
border-color: black;
border-width: 1px;
padding: 5px;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “06_navigation.css“:
Der CSS Code für die Datei “07_content.css“:
@media all {
main {
color: white;
background-color: seagreen;
padding: 20px;
border-style: solid;
border-color: black;
border-width: 1px;
margin-top: 3px;
margin-right: 241px;
margin-bottom:5px;
margin-left: 241px;
font-family: Arial;
font-size: smaller;
}
#formular fieldset {
padding: 10px;
}
main a:link {
color: white;
background-color: steelblue;
text-decoration: underline;
}
main a:visited {
color: white;
background-color: steelblue;
text-decoration: underline;
}
main a:hover {
color: black;
background-color: white;
text-decoration: underline;
}
main a:focus {
color: white;
background-color: steelblue;
text-decoration: underline;
}
main a:active {
color: white;
background-color: steelblue;
text-decoration: underline;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “08_artikel.css“:
@media all {
article {
overflow: hidden;
color: black;
background-color: white;
padding: 5px;
border-style: solid;
border-color: black;
border-width: 1px;
}
.flowtext {
background-color: lightsteelblue;
}
.clearingtext {
clear: both;
background-color: lightsteelblue;
}
.artikelfloat {
float:left;
color: black;
background-color: lightsteelblue;
margin-left: 0px;
margin-right: 5px;
margin-bottom: 5px;
padding: 5px;
width: 450px;
height: 200px;
border-style: solid;
border-color: black;
border-width: 1px;
}
.clearingartikel {
clear: both;
overflow: hidden;
color: black;
background-color: lightsteelblue;
padding: 5px;
border-style: solid;
border-color: black;
border-width: 1px;
}
.bildlinks {
float: left;
margin-top: 5px;
margin-right: 15px;
margin-bottom: 5px;
border-style: solid;
border-width: 1px;
}
.bildrechts {
float: right;
margin-top: 5px;
margin-right: 15px;
margin-bottom: 5px;
border-style: solid;
border-width: 1px;
}
hr {
color: red;
}
span {
background-color: red;
}
} /* Ende von @media nicht löschen */
Der CSS Code für die Datei “09_spalte3.css“:
@media all {
#spalte3 {
position: absolute;
top: 97px;
right: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
border-style: none;
border-color: black;
border-width: 1px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 10px;
width: 225px;
color: white;
background-color: white;
font-family: Arial;
font-size: smaller;
}
#spalte3 article {
overflow: hidden;
color: white;
background-color: seagreen;
margin: 0px;
padding: 5px;
border-style: solid;
border-color: black;
border-width: 1px;
}
#spalte3 a:link {
color: white;
background-color: seagreen;
display: block;
text-decoration: none;
}
#spalte3 a:visited {
color: white;
background-color: steelblue;
display: block;
text-decoration: none;
}
#spalte3 a:hover {
background-color: white;
color: black;
display: block;
text-decoration: none;
}
#spalte3 a:focus {
color: black;
background-color: white;
display: block;
text-decoration: none;
}
#spalte3 a:active {
color: black;
background-color: white;
display: block;
text-decoration: none;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “10_topnavigation.css“:
@media all {
#topnavigation {
position: absolute;
top: 50px;
left: 300px;
height: 20px;
background-color: seagreen;
color: black;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: black;
border-right-color: black;
border-bottom-color: black;
border-left-color: black;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
font-family: Arial;
font-size: smaller;
}
#topnavigation li {
display: inline;
list-style-type: none;
padding: 3px;
}
#topnavigation a:link {
color: seagreen;
background-color: white;
display: inline;
text-decoration: none;
padding: 3px;
}
#topnavigation a:visited {
color: seagreen;
background-color: white;
display: inline;
text-decoration: none;
padding: 3px;
}
#topnavigation a:hover {
color: black;
background-color: white;
display: inline;
text-decoration: none;
padding: 3px;
}
#topnavigation a:focus {
color: seagreen;
background-color: white;
display: inline;
text-decoration: none;
padding: 3px;
}
#topnavigation a:active {
color: seagreen;
background-color: white;
display: inline;
text-decoration: none;
padding: 3px;
}
/* Gestaltung der zweiten Ebene*/
#topnavigation ul li ul {
position: absolute;
display: inline;
top: 15px;
left: 320px;
width: 250px;
list-style-type: none;
padding: 3px;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “11_naviblox.css“:
@media all {
#naviblox01 {
position: absolute;
top: 175px;
left: 5px;
width: 210px;
background-color: seagreen;
color: white;
padding: 10px;
border-style: solid;
border-color: black;
border-width: 1px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
font-family: Arial;
font-size: smaller;
}
} /* Ende von @media nicht löschen*/
Der CSS Code für die Datei “12_spalte1.css“:
@media all {
nav {
position: absolute;
top: 97px;
left: 0px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 0px;
border-style: none;
border-color: black;
border-width: 1px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 10px;
width: 225px;
color: white;
background-color: white;
font-family: Arial;
font-size: smaller;
}
nav article {
overflow: hidden;
color: white;
background-color: seagreen;
margin: 0px;
padding: 5px;
border-style: solid;
border-color: black;
border-width: 1px;
}
nav li {
display: block;
list-style-type: none;
padding: 3px;
}
nav a:link {
color: seagreen;
background-color: white;
display: block;
text-decoration: none;
padding: 3px;
}
nav a:visited {
color: seagreen;
background-color: white;
display: block;
text-decoration: none;
}
nav a:hover {
background-color: white;
color: black;
display: block;
text-decoration: none;
}
nav a:focus {
color: seagreen;
background-color: white;
display: block;
text-decoration: none;
padding: 3px;
}
nav a:active {
color: seagreen;
background-color: white;
display: block;
text-decoration: none;
padding: 3px;
}
} /* Ende von @media nicht löschen*/