Baerwatz
Mitglied
Hallo, ich hoffe es kann mir jemand helfen.
Ich möchte mit Hilfe von CSS Buttons mit nem RollOver-Effekt konstruieren.
Dafür hab ich ne extra Klasse geschrieben und dort die einzelnen Bedingungen für die Links beschrieben.
Das ganze funktioniert jetzt aber nicht: ich bekomme die Links immer so dargestellt, wie ich sie allgemein definiert habe.
Kann mir vielleicht jemand sagen, wo der Fehler liegt?
Hier der Quelltext:
/*test.css*/
body
{
background-color : #FFFFFF;
margin : 0px;
padding : 15px;
}
a
{
font-family : Arial, Verdana, Helvetica, sans-serif;
color : #808080;
text-decoration : none;
font-size: 70%;
}
a:link
{
color : #808080;
text-decoration : none;
}
a:visited
{
color : #A7A7A7;
text-decoration : none;
}
a:hover
{
color : #A7A7A7;
text-decoration : underline;
}
a:active
{
color : #A7A7A7;
text-decoration : underline;
}
img
{
border: none;
}
h1
{
color:#808080;
}
h2
{
color:#808080;
}
div
{
font-family :Arial, Verdana, Helvetica, sans-serif;
padding : 15px;
}
div#frame
{
border : none;
margin-left : auto;
margin-right : auto;
padding : 0;
width : 100%;
}
div.head
{
border : none;
color : #979797;
font-size : 50%;
font-weight : bold;
}
div.content
{
font-size : 100%;
padding-left : 15px;
}
div.buttons
{
font-size : 60%;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
padding-top : 0px;
padding-bottom : 0px;
text-align: left;
white-space: nowrap;
background-color: #A7A7A7;
}
.buttons a
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #000000;
text-decoration : none;
background-color: #A7A7A7;
}
.buttons a:link
{
}
.buttons a:visited
{
}
.buttons a:hover
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #FFFFFF;
text-decoration : none;
background-color: #808080;
}
.buttons a:active
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #FFFFFF;
text-decoration : none;
background-color: #808080;
}
.bold
{
font-weight : bold;
}
/*test_CSS.html*/
<html>
<head xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<title>test_CSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
<body>
<div id="frame">
<!--######NAVI OBEN######-->
<div class="content">
<table width=100% valign="top">
<tr>
<td align="right" width=10%>
<a href="inhalt.html">Inhalt</a><br />
<a href="#">Intranet</a><br />
<a href="index.html">Home</a>
</td>
<td align="center">
<img src="pics/unternehmen_na.gif" alt="ETW" width="97" height="40">
</td>
<td align="center" width=15%>
<a href="etw_1.html">Nav1</a>
</td>
<td align="center" width=15%>
<a href="etw_2.html">Nav2</a>
</td>
<td align="center" width=15%>
<a href="etw_h.html">Nav3</a>
</td>
<td align="center" width=15%>
<a href=""> </a>
</td>
<td align="center" width=15%>
<a href=""> </a>
</td>
</tr>
</table>
</div>
<!--######SPACE######-->
<div class="head">
<center> </center>
</div>
<table width=100%>
<tr>
<!--######NAVI LINKS######-->
<td width=10% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<div class="content">
<tr>
<td align="right">
<br />
<a href="etw.html">Link1</a><br />
<br />
<a href="etw1.html">Link2</a><br />
<br />
<a href="etw2.html">Link3</a><br />
<br />
<a href="etw3.html">Link4</a><br />
<br />
<a href="etw4.html">Link5</a><br />
<br />
<a href="etw5.html">Link6</a><br />
<br />
<a href="etw6.html">Link7</a><br />
<br />
<a href="orga.html">Link8</a><br />
<br />
<a href="weg.html">Link9</a><br />
</td>
</tr>
</div>
</table>
</td>
<!--######SPACE######-->
<td width=10%>
<table width="100%" cellspacing="0" cellpadding="0">
</table>
</td>
<!--######CONTENT######-->
<td width=60% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><h2>TEST</h2></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
<!--######NAVI RECHTS (BUTTONS)######-->
<td width=20% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<br />
<br />
</td>
</tr>
<div class="buttons">
<tr>
<td>
<a href="">Mitarbeiter</a><br />
<a href="">Raumbelegung</a><br />
<a href="">Ansprechpartner</a><br />
<a href="">MA-Sonderaufgaben</a>
</td>
</tr>
</div>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
Ich möchte mit Hilfe von CSS Buttons mit nem RollOver-Effekt konstruieren.
Dafür hab ich ne extra Klasse geschrieben und dort die einzelnen Bedingungen für die Links beschrieben.
Das ganze funktioniert jetzt aber nicht: ich bekomme die Links immer so dargestellt, wie ich sie allgemein definiert habe.
Kann mir vielleicht jemand sagen, wo der Fehler liegt?
Hier der Quelltext:
/*test.css*/
body
{
background-color : #FFFFFF;
margin : 0px;
padding : 15px;
}
a
{
font-family : Arial, Verdana, Helvetica, sans-serif;
color : #808080;
text-decoration : none;
font-size: 70%;
}
a:link
{
color : #808080;
text-decoration : none;
}
a:visited
{
color : #A7A7A7;
text-decoration : none;
}
a:hover
{
color : #A7A7A7;
text-decoration : underline;
}
a:active
{
color : #A7A7A7;
text-decoration : underline;
}
img
{
border: none;
}
h1
{
color:#808080;
}
h2
{
color:#808080;
}
div
{
font-family :Arial, Verdana, Helvetica, sans-serif;
padding : 15px;
}
div#frame
{
border : none;
margin-left : auto;
margin-right : auto;
padding : 0;
width : 100%;
}
div.head
{
border : none;
color : #979797;
font-size : 50%;
font-weight : bold;
}
div.content
{
font-size : 100%;
padding-left : 15px;
}
div.buttons
{
font-size : 60%;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
padding-top : 0px;
padding-bottom : 0px;
text-align: left;
white-space: nowrap;
background-color: #A7A7A7;
}
.buttons a
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #000000;
text-decoration : none;
background-color: #A7A7A7;
}
.buttons a:link
{
}
.buttons a:visited
{
}
.buttons a:hover
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #FFFFFF;
text-decoration : none;
background-color: #808080;
}
.buttons a:active
{
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
border:1px solid #FFFFFF;
color : #FFFFFF;
text-decoration : none;
background-color: #808080;
}
.bold
{
font-weight : bold;
}
/*test_CSS.html*/
<html>
<head xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<title>test_CSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
<body>
<div id="frame">
<!--######NAVI OBEN######-->
<div class="content">
<table width=100% valign="top">
<tr>
<td align="right" width=10%>
<a href="inhalt.html">Inhalt</a><br />
<a href="#">Intranet</a><br />
<a href="index.html">Home</a>
</td>
<td align="center">
<img src="pics/unternehmen_na.gif" alt="ETW" width="97" height="40">
</td>
<td align="center" width=15%>
<a href="etw_1.html">Nav1</a>
</td>
<td align="center" width=15%>
<a href="etw_2.html">Nav2</a>
</td>
<td align="center" width=15%>
<a href="etw_h.html">Nav3</a>
</td>
<td align="center" width=15%>
<a href=""> </a>
</td>
<td align="center" width=15%>
<a href=""> </a>
</td>
</tr>
</table>
</div>
<!--######SPACE######-->
<div class="head">
<center> </center>
</div>
<table width=100%>
<tr>
<!--######NAVI LINKS######-->
<td width=10% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<div class="content">
<tr>
<td align="right">
<br />
<a href="etw.html">Link1</a><br />
<br />
<a href="etw1.html">Link2</a><br />
<br />
<a href="etw2.html">Link3</a><br />
<br />
<a href="etw3.html">Link4</a><br />
<br />
<a href="etw4.html">Link5</a><br />
<br />
<a href="etw5.html">Link6</a><br />
<br />
<a href="etw6.html">Link7</a><br />
<br />
<a href="orga.html">Link8</a><br />
<br />
<a href="weg.html">Link9</a><br />
</td>
</tr>
</div>
</table>
</td>
<!--######SPACE######-->
<td width=10%>
<table width="100%" cellspacing="0" cellpadding="0">
</table>
</td>
<!--######CONTENT######-->
<td width=60% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><h2>TEST</h2></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
<!--######NAVI RECHTS (BUTTONS)######-->
<td width=20% valign="top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<br />
<br />
</td>
</tr>
<div class="buttons">
<tr>
<td>
<a href="">Mitarbeiter</a><br />
<a href="">Raumbelegung</a><br />
<a href="">Ansprechpartner</a><br />
<a href="">MA-Sonderaufgaben</a>
</td>
</tr>
</div>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>