Moin Leuts.
Sry, dass es so lange gedauert hat...
Hier ist der
Quelltext (auch nachzugucken:
http://webbastler.freehoster.ch/files/index.html)
----------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="robots" content="index,follow,no-cache" />
<meta name="Keywords" content="computerbase" />
<meta name="Description" content="Thread-Example" />
<link rel="SHORTCUT ICON" href="favicon.ico" />
<link rel="icon" href="favicon.ico" type="image/icon" />
<title>Die ist ein Computerbase-Example</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
/*//////////////////////////////////////////////////////////////////*/
#allinto {
position:relative;
width:600px;
height:600px;
z-index:2;
border:1px solid #000000;
}
/*//////////////////////////////////////////////////////////////////*/
#test1, #test1 a:link, #test1 a:visited {
position:absolute;
width:150px;
height:40px;
z-index:4;
left: 74px;
top: 62px;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:normal;
font-style:normal;
text-decoration:none;
text-align:center;
color:#000000;
}
#test1:hover, #test1 a:hover, #test1 a:active, #test1 a:focus {
background-image:url(nav.png);
background-repeat:repeat-x;
background-position:left;
color:#FFFFFF;
}
-->
</style>
</head>
<body>
<div id="allinto" style="margin: 0 auto">
<a href="#" target="_self"><div id="test1">Test1</div></a>
</div>
</body>
</html>
----------------------------------
Ich möchte mich hier erst mal auf den
Hover-Effekt beziehen, nicht die Sache mit den PNGs.
Den Tipp von Mr.Snoot hab ich angewendet (wusst ich vorher nicht ;] ).
Ich habe aber
ganze DIVs verlinkt, was im IE zu Schwierigkeiten führt; in Opera geht das beispielsweise.
Ist das mit Hilfe von CSS zu lösen ?