Die Navigation als ungeordnete Liste
+Die Navigation ist mit Vorteil als ungeordnete Liste zu konzipieren. Also ul > li a, somit ist eine vernünftige Struktur auch ohne CSS gewährleitet. +
+diff --git a/css/style.css b/css/style.css index 45fa3bb..04f1c5a 100644 --- a/css/style.css +++ b/css/style.css @@ -7,7 +7,7 @@ body { margin: 0 auto; } header, footer{ - height: 160px; + height: 200px; background: #ddd } header{ @@ -18,9 +18,24 @@ footer{ } header img{ padding-top: 62px; + float: left; +} + +nav li{ + display: inline; + line-height: 160px; + margin-left: 20px; +} +nav a:link, nav a:visited{ + color: #fff; + text-decoration: underline; +} +nav a:hover{ + color: #e01a4b; + text-decoration: none; } footer p{ - line-height: 160px; + line-height: 200px; } h1, h2{ font-weight: 100; diff --git a/html/navigation.html b/html/navigation.html new file mode 100644 index 0000000..5208608 --- /dev/null +++ b/html/navigation.html @@ -0,0 +1,80 @@ + + + +
+ + + +Die Navigation ist mit Vorteil als ungeordnete Liste zu konzipieren. Also ul > li a, somit ist eine vernünftige Struktur auch ohne CSS gewährleitet. +
+
+<nav role="navigation">
+ <ul>
+ <li><a href="../index.html">Home</a></li>
+ <li><a href="semantik.html">Semantik</a></li>
+ <li><a href="formulare.html">Formulare</a></li>
+ </ul>
+</nav>
+
+
+ Das Beispiel hier in der Navigation dieses Beispiels.
+Navigationen mit Unternavigations-Punkte finden Sie als weiteres Beispiel auf meinem Git Server
+
+nav li{
+ display: inline;
+ line-height: 160px;
+ margin-left: 20px;
+}
+nav a:link, nav a:visited{
+ color: #fff;
+ text-decoration: underline;
+}
+ nav a:hover{
+ color: #e01a4b;
+ text-decoration: none;
+}
+
+
+