CSS - Explorer / Firefox

Status
Niet open voor verdere reacties.

Meneer_Marco

Gebruiker
Lid geworden
7 aug 2006
Berichten
26
Ik wil mijn website voorzien van CSS, dit scheelt veel tijd en is best leuk om te doen.
Nu heb ik een klein basisding gemaakt dat de achtergrondkleur en de links moet vormgeven.
De links werken op zich wel aardig. Alleen de achtergrondkleur van de website (zwart) is alleen in explorer te zien. In Firefox krijg ik gewoon een wit scherm.

Wat is er niet goed?

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<STYLE TYPE="text/css">

<!--


body { background-color: black }
body { font-family: arial; font-size: 12pt; color: #0099CC; text-decoration: none; }

a:link { color: #0099CC; }
a:visited { color: #0099CC; }
a:hover { color: orange }
a:active { color: #0099CC; }


-->



</style>
</head>

<body>

</body>

</html>
 
MaC666,
uw eerste fout:
punt comma ontbreekt
Code:
body { background-color: black ???}
En waarom tweemaal body je kan alles in een body plaatsen!!
De code hieronder zou in alle browsers een zwarte achergrond moeten geven!
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<STYLE TYPE="text/css">
body {
background-color: black;
font-family: arial; 
font-size: 12pt;
color: #0099CC;
text-decoration: none;
} 
a:link { color: #0099CC; }
a:visited { color: #0099CC; }
a:hover { color: orange }
a:active { color: #0099CC; }
</style>
</head>
<body>

</body>

</html>
groetjes
defietser
 
helaas....

Helaas, het werkt niet. Overigens bedankt voor het samenvoegen van de 2 "body-codes"

ik heb het al gevonden

in CSS moet je voor firefox html gebruiken in plaats van body
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan