Hallo allesamt!
Ich bin gerade dabei ein Layout ohne Tabellen zu erstellen. Ich mache das ganze also mit div-Containern, die in einer externen CSS-Datei definiert werden - von wegen Größe und Position.
Ich habe nun verschiedene Menüs, die auch unterschiedliche Designs haben sollen, die ebenfalls in der CSS-Datei definiert sind. Hier mal zur Anschauung:
html, body
height: 100%;
}
body {
margin: 0 0 0 0;
padding: 0 0 0 0;
color: #000000;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
}
div.logo {
position:absolute;
top:20px;
left:20px;
border:0;
}
div.border {
position:absolute;
top:130px;
left:0px;
border:0;
}
div.topmenu {
position:absolute;
top:25px;
left:550px;
}
div.mainmenu {
position:absolute;
top:110px;
left:20px;
}
div.submenu {
position:absolute;
top:270px;
left:0px;
width:140px;
}
div.content {
position:absolute;
top:270px;
left:160px;
width:430px;
}
div.content2 {
position:absolute;
top:270px;
left:610px;
width:140px;
}
a.topmenu:link {
color: #004A9B;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
a.topmenu:visited {
color: #004A9B;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
a.topmenu:hover {
color: #004A9B;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:none;
font-weight:bold;
}
a.topmenu:active {
color: #000000;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
a.mainmenu:link {
color: #000000;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
a.topmenu:visited {
color: #000000;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
a.topmenu:hover {
color: #000000;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:none;
font-weight:bold;
}
a.topmenu:active {
color: #004A9B;
font-size: 11px;
font-family: arial, helvetica, sans-serif;
text-decoration:underline;
font-weight:bold;
}
Die Container werden richtig angezeigt und auch die Marker, die ich in der HTML-Vorlage eingegeben habe. Hier mal der HTML-Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>kein Titel</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!-- ###DOKUMENT### -->
<div class="logo"><img src="headlogo.jpg"></div>
<div class="topmenu"><p class="a.topmenu"><a href="#">Test</a></p></div>
<div class="mainmenu">###MAINMENU###</div>
<div class="border"><img src="banner01.jpg"></div>
<div class="submenu">###SUBMENU###</div>
<div class="content">###CONTENT###</div>
<div class="content2">###CONTENT2###</div>
<!-- ###DOKUMENT### -->
</body>
</html>
Wenn ich jetzt mit Typo-Script den Marker für das Menü anspreche (ist ja egal welches), wie kann ich denn dem jeweiligen Menü das entsprechende CSS-Design zuordnen. Das kann ich ja nicht in dem HTML-Template machen, da ich dort ja keine Link eintrage.
Die Antwort ist betimmt recht einfach. Vielleicht kann mir da einer helfen und einen kleinen Tipp geben. Vielen Dank schon mal im Voraus!!!