Hallo,
folgendes Problem: Ich will ne Hintergrundgrafik einfügen. Das klappt in allen Browsern (Opera, Konquer). Nur der FireFox stellt sich dumm.
HTML-Datei:
<html>
<head>
<title>nicht ohne jasper</title>
<style type="text/css" media="all">@import "./style.css";</style>
</head>
<body>
</body>
</html>
CSS-Datei:
body {
background: url('stuppp.jpg') repeat-x;
background-color: #637656;
margin: 0;
padding: 0;
}
Wiso den so?
Quote
<style type="text/css" media="all">@import "./style.css";</style>
Also ich kenne es nur so:
Quote
<link rel="stylesheet" href="./style.css" type="text/css" />
das ist die etwas fortgeschrittene Variante die auch die älteren IE versionen berrücksichtigt... (glaube ich:) )
Ja, aber ne Idee hat auch keiner?
sagt die Konsole auch nix dazu?
Ich habs nun hinbekommen.
HTML:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>
sebastian eiweleit - private website and blog
</title>
<style type="text/css" media="all">@import "./themes/default/widgets/style.css";</style>
</head>
<body>
CSS:
html {
padding:0px;
margin:0px;
}
body {
background: url('stuppp.jpg') repeat-x;
background-color: #637656;
margin: 0;
padding: 0;
text-align: center;
}