m@y: Konflikt mitr Pseudoformaten und Klassen

Beitrag lesen

Moin,

Probleme mit Pseudoformat und gewolltem Format

versuch mal dem Anker ein eigenes style-objekt zuzuordnen:

<html>
<head>
<title>Scrollen im Div</title>
<style type="text/css">
<!--

a:link {font-family :Helvetica, Arial, MS Sans Serif, sans-serif;font-size:12px; text-decoration:none; color:#000000; font-weight:normal;}
a:visited {font-family :Helvetica, Arial, MS Sans Serif, sans-serif;font-size:12px; text-decoration:none; color:#000000; font-weight:normal;}

.test {color:red}
.blue {font-family :Helvetica, Arial, MS Sans Serif, sans-serif; font-size:12px; color:blue; text-decoration: none;font-weight:normal;}

-->
</style>
</head>

<body style="text-align:center;">

<div style=" position:absolute;top:0px; left:0px;width:786px;height:385px; background-color:#ffffff;overflow:auto;z-index:0;">
  <a href="" name="1" style="font-family :Helvetica, Arial, MS Sans Serif, sans-serif; font-size:12px; color:blue; text-decoration: none;font-weight:normal;">1 hdfslksdjfhsdjkhsdk</a<br>
  <a href="" name="2">2 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="3">3 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="4">4 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="5">5 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="6">6 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="7">7 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="8">8 hdfslksdjfhsdjkhsdk</a><br>
  <a href="" name="9">9 hdfslksdjfhsdjkhsdk</a><br
  </div>

</body>
</html>

hat bei mir geklappt