WinFuture-Forum.de: Css Wird Ignoriert - WinFuture-Forum.de

Zum Inhalt wechseln

Nachrichten zum Thema: Entwicklung
Seite 1 von 1

Css Wird Ignoriert


#1 _max_

  • Gruppe: Gäste

geschrieben 19. Juni 2010 - 18:32

Hallo,

zuerst: bin Anfänger!

Ich habe eine index.html die eine einfache style.css läd.
<link rel="stylesheet" href="style.css" type="text/css">
</head>


Die style.css hat folgenden Inhalt:
body{
background:#333333;
margin:8px;
font: 8pt/14pt 'Lucida Grande', Verdana, Helvetica, sans-serif;
color:#FFFFCC;
}
A:link{ color:#999999; text-decoration:none; }
A:hover{ color:#00A4A1; text-decoration:underline; }
A:active{ color:#999999; text-decoration:none; }
A:active:hover{ color:#00A4A1; text-decoration:underline; }
A:visited{ color:#999999; text-decoration:none; }
A:visited:hover{ color:#00A4A1; text-decoration:underline; }


Der Text in meinter index.html wird problemlos durch die css formatiert. Wenn ich den Text aber in eine Tabelle schreibe, wird die Formatierung von der style.css ignoriert. Was muss ich ändern, dass durch die css der gesamte Inhalt meiner Page formatiert wird?
0

Anzeige



#2 Mitglied ist offline   slurp 

  • Gruppe: aktive Mitglieder
  • Beiträge: 1.342
  • Beigetreten: 25. September 08
  • Reputation: 133
  • Geschlecht:Männlich

geschrieben 19. Juni 2010 - 18:38

Nur mal schnell geraten, versuchs mal so:

body, table{
background:#333333;
margin:8px;
font: 8pt/14pt 'Lucida Grande', Verdana, Helvetica, sans-serif;
color:#FFFFCC;
}
A:link{ color:#999999; text-decoration:none; }
A:hover{ color:#00A4A1; text-decoration:underline; }
A:active{ color:#999999; text-decoration:none; }
A:active:hover{ color:#00A4A1; text-decoration:underline; }
A:visited{ color:#999999; text-decoration:none; }
A:visited:hover{ color:#00A4A1; text-decoration:underline; }

0

#3 _max_

  • Gruppe: Gäste

geschrieben 19. Juni 2010 - 18:47

Es klappt, Danke!
0

#4 Mitglied ist offline   slurp 

  • Gruppe: aktive Mitglieder
  • Beiträge: 1.342
  • Beigetreten: 25. September 08
  • Reputation: 133
  • Geschlecht:Männlich

geschrieben 19. Juni 2010 - 18:52

Gerne =)
0

Thema verteilen:


Seite 1 von 1

1 Besucher lesen dieses Thema
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0