Steve: style="A:LINK{color:#FF0000;}"

Beitrag lesen

geht das,

Links innerhalb eines Tags z.B.: <div> farblich zu formatieren ?

So gehts nicht

Aber so:

<html>
<head>

<style type="text/css">
div A:visited { color: #ff0000 }
div A:link    { color: #ff0000 }
div A:hover   { color: #ff0000 }
div A:aktiv   { color: #ff0000 }
</style>

</head>
<body>

<div>
<a href="#">Dies ist nur Blindtext</a>
<a href="#">Dies ist nur Blindtext</a>
</div>

</body>
</html>

Ich möchte die Links weder im <body>, noch jeweils pro Link formatieren, sondern jeweils pro <div> oder <p>.

Kann jemand helfen ?

Gruß Ralle