Witschi262
Blogger
Hallo,
ich habe ein Hintergrundbild erstellt, möchte dieses aber gerne zentrieren.
Wie funktioniert das?
Witschi
ich habe ein Hintergrundbild erstellt, möchte dieses aber gerne zentrieren.
Wie funktioniert das?
Witschi
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
body
{
background-image: url("h.jpg")
background-color: none;
background-repeat: repeat;
}
Hab ich noch nie erlebt, dass die Anführungszeichen Probleme machen, hast du dafür mal ein Beispiel? Weil sogar in der Spezifikation des W3C wird der Pfad in Anführungszeichen geschrieben. Colors and backgrounds... und nehme mal die Anführungszeichen raus. Das gibt manchmal Probleme.
<div style="background-image: url("bild.gif");">
<html>
<head>
<style type="text/css">
body
{
background-image; url("h.jpg")
background-color: none;
background-repeat: repeat;
}
img
{
border:none;
}
#navi
{
padding-left: 0px;
padding-top: 0px;
}
ul {
border-width: thin;
border-style: solid;
border-color: orange;
margin-top: 250px;
margin-right: 700px;
margin-bottom: 0px;
margin-left: 0px;
background: none;
}
h6 {
border-width: thin;
border-style: solid;
border-color: orange;
margin-top: -100px;
margin-right: 200px;
margin-bottom: 100px;
margin-left: 200px;
background: #FFFFFF;
}
</style>
<title>Sticktion</title>
</head>
<body text="#FFA500" alink="#FFA500" vlink="#FFA500">
<center><img src="logo.jpg"></center>
<img align=right src="stick.jpg">
<h6>
<b>
<ul id="navi">
<center><font size="1"><b>
<br /><br />
<a href="index.htm">Home</a><br /><br />
<a href="index.htm">Animationen</a><br /><br />
<a href="index.htm">Animationen für Kinder</a><br /><br />
<a href="index.htm">Bewertung</a><br /><br />
<a href="index.htm">Wie wird's gemacht?</a>
<br /><br /><br /><br />
</font></center>
</ul>
</b>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</h6>
</body>
</html>
<html>
<head>
<style type="text/css">
body
{
background-image; url("h.jpg")[COLOR=Red][B];[/B][/COLOR]
background-color: none;
background-repeat: repeat;
}
Der IE5.x mac hatte mit einfachen Anführungszeichen (single quotes) Probleme.Ich hatte es damals mit Anführührungszeichen gemacht. Bei einem Browser wurde es nicht angezeigt (weiss aber nicht mehr welcher).