Hallo,
mittlerweile habe ich eine kleine Homepage erstellt (mit MS Expression web 4), die nur einige Buttons mit Links zur Weiterleitung enthält.
da das Hintergrundbild teils gekachelt wurde, habe ich 2 Versionen erstellt, die unter verschiedenen URLs aufgerufen werden und einmal ein Hintergrundbild im Hochformat haben und einmal im Querformat.
Ich frage mich, ob es einen einfachen Weg gibt, dass man nur eine Version verwendet und der Browser slebst entscheidet, welches Hintergrundbild er nehmen soll.
Hier jeweils der erste Teil der Index.html-Datei (nur die vorletzte Zeile unterscheidet sich):
mobil:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_4</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
.auto-style2 {
color: #7FDBFC;
}
.auto-style3 {
margin-left: 267px;
margin-top: 26px;
margin-bottom: 0px;
}
.auto-style4 {
font-size: x-large;
font-family: "Belwe Bd BT";
}
.auto-style6 {
margin-left: 32px;
}
.auto-style7 {
color: #B2E7FA;
font-size: xx-large;
}
.auto-style8 {
font-family: "Belwe Bd BT";
}
</style>
</head>
<body style="background-image: url('Hintergrund-schmaler.jpg')">
<p class="auto-style1">
...
...
...
und hier die Desktop-Version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_4</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
.auto-style2 {
color: #7FDBFC;
}
.auto-style3 {
margin-left: 267px;
margin-top: 26px;
margin-bottom: 0px;
}
.auto-style4 {
font-size: x-large;
font-family: "Belwe Bd BT";
}
.auto-style6 {
margin-left: 32px;
}
.auto-style7 {
color: #B2E7FA;
font-size: xx-large;
}
.auto-style8 {
font-family: "Belwe Bd BT";
}
</style>
</head>
<body style="background-image: url('Hintergrund.jpg');background-size: 100% 100%">
<p class="auto-style1">
...
....
...
Gibt es da eine Lösung für Laien wie mich?
mittlerweile habe ich eine kleine Homepage erstellt (mit MS Expression web 4), die nur einige Buttons mit Links zur Weiterleitung enthält.
da das Hintergrundbild teils gekachelt wurde, habe ich 2 Versionen erstellt, die unter verschiedenen URLs aufgerufen werden und einmal ein Hintergrundbild im Hochformat haben und einmal im Querformat.
Ich frage mich, ob es einen einfachen Weg gibt, dass man nur eine Version verwendet und der Browser slebst entscheidet, welches Hintergrundbild er nehmen soll.
Hier jeweils der erste Teil der Index.html-Datei (nur die vorletzte Zeile unterscheidet sich):
mobil:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_4</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
.auto-style2 {
color: #7FDBFC;
}
.auto-style3 {
margin-left: 267px;
margin-top: 26px;
margin-bottom: 0px;
}
.auto-style4 {
font-size: x-large;
font-family: "Belwe Bd BT";
}
.auto-style6 {
margin-left: 32px;
}
.auto-style7 {
color: #B2E7FA;
font-size: xx-large;
}
.auto-style8 {
font-family: "Belwe Bd BT";
}
</style>
</head>
<body style="background-image: url('Hintergrund-schmaler.jpg')">
<p class="auto-style1">
...
...
...
und hier die Desktop-Version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Ohne_Titel_4</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
.auto-style2 {
color: #7FDBFC;
}
.auto-style3 {
margin-left: 267px;
margin-top: 26px;
margin-bottom: 0px;
}
.auto-style4 {
font-size: x-large;
font-family: "Belwe Bd BT";
}
.auto-style6 {
margin-left: 32px;
}
.auto-style7 {
color: #B2E7FA;
font-size: xx-large;
}
.auto-style8 {
font-family: "Belwe Bd BT";
}
</style>
</head>
<body style="background-image: url('Hintergrund.jpg');background-size: 100% 100%">
<p class="auto-style1">
...
....
...
Gibt es da eine Lösung für Laien wie mich?
Kommentar