PSD-Fan
Hallo,
bin ein absoluter Neuling in der CSS-Welt :-( und habe natürlich gleich ein Problem und komme nicht drauf, was ich falsch mache:
In dem Moment, wenn ich mit der Maus über die Links gehe, erscheint eine leere "Zeile", d.h. der Block erweitert sich nach unten. Wie kann ich dies verhindern.
Was ich auch nicht verstehe ist die Tatsache, dass trotz "text-decoration:none" der Text unterstrichen ist. Ich arbeitet zur Zeit im IE 8 .
#navi { width: 12%;
float: left;
margin-left: 3%;
background-color:silver;
}
a: link{color: black;
width: 7em;
padding:2px;
text-decoration:none;
background-color:silver;
}
a: visited{color:#6C6;
width: 7em;
padding:2px;
text-decoration:none;
background-color:silver;
}
a:hover {color: red;
background-color: #6F0;
text-decoration: none;
display: block;
}
<body>
<div id="navi">
<a href="unbenannntx.html" target="_blank">Home</a><br />
<a href="unbenannntx.html" target="_blank">Home</a><br />
<a href="unbenannntx.html" target="_blank">Home</a><br />
</div>
<body>
Danke vorab
bin ein absoluter Neuling in der CSS-Welt :-( und habe natürlich gleich ein Problem und komme nicht drauf, was ich falsch mache:
In dem Moment, wenn ich mit der Maus über die Links gehe, erscheint eine leere "Zeile", d.h. der Block erweitert sich nach unten. Wie kann ich dies verhindern.
Was ich auch nicht verstehe ist die Tatsache, dass trotz "text-decoration:none" der Text unterstrichen ist. Ich arbeitet zur Zeit im IE 8 .
#navi { width: 12%;
float: left;
margin-left: 3%;
background-color:silver;
}
a: link{color: black;
width: 7em;
padding:2px;
text-decoration:none;
background-color:silver;
}
a: visited{color:#6C6;
width: 7em;
padding:2px;
text-decoration:none;
background-color:silver;
}
a:hover {color: red;
background-color: #6F0;
text-decoration: none;
display: block;
}
<body>
<div id="navi">
<a href="unbenannntx.html" target="_blank">Home</a><br />
<a href="unbenannntx.html" target="_blank">Home</a><br />
<a href="unbenannntx.html" target="_blank">Home</a><br />
</div>
<body>
Danke vorab