zur « Themenübersicht Webmaster-Tricks
HTML_CSS - Sparte HTML_CSS
DropDown-Menüs
Eingetragen am 18.10.2006
Beispiel:
DropDown mit CSS
Download
Code:
<html>
<head>
<style type="text/css">
<!--
select {
background-color: #e1e1e1;
font: 12pt Verdana, Arial, sans-serif;
}
.Land {
background-color: #000000;
color: #ffffff;
}
.Stadt {
color: #003366;
}
//-->
</style>
<title>DropDown-Felder formatieren</title>
</head>
<body>
<select size="1">
<option class="Land">Deutschland</option>
<option class="Stadt">Berlin</option>
<option class="Stadt">Hamburg</option>
<option class="Stadt">Rhede</option>
</select>
</body>
</html>
Bisherige Kommentare: Kommentar schreiben»
