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.
Guten Morgen,
zu deiner ersten Frage bezüglich der CSS Datei:
du kannst eine externe CSS erstellen und diese für alle Seiten nutzen.
Definiere einfach verschiedene Klassen in denen du Hintergrundfarbe etc. angibst und gebe diese entsprechend mit.
Beantwortet das deine Frage?
<!DOCTYPE html>
<html>
<head>
<title>Steffi Portfolio</title>
<link rel="stylesheet" type="text/css" href="Style.css"/>
</head>
<body>
<div id="main"></div>
<div id="kreis"></div>
<div id="dots_home"></div>
<div id="logo_hover"></div>
<a href="Steffi_index.html"><div id="name_hover"></div></a>
<a href="Impressum_index.html"><div id="impressum_hover"></div></a>
<a href="Kontakt_index.html"><div id="kontakt_hover"></div></a>
<a href="Corporate_index.html"><div id="corporate_hover"></div></a>
<a href="Grafik_index.html"><div id="grafikdesign_hover"></div></a>
<a href="Foto_index.html"><div id="fotodesign_hover"></div></a>
</body>
</html>
body {
font-family:Arial, Helvetica, sans-serif;
color:#636466;
font-size:12px;
line-height:20px;
padding:0;
margin:0;
background-color:#c5e0db;
}
#main {
width:1010px;
height:540px;
background-image:url(img/back1.png);
background-repeat:no-repeat;
background-size:1000px auto;
background-position: 5px -3px;
position:absolute;
top:50%;
left:50%;
margin-left:-501px;
margin-top:-266px;
z-index:1;
}
#kreis {
width:956px;
height:509px;
background-image:url(img/kreisehome.png);
background-repeat:no-repeat;
background-size:900px auto;
background-position: 32px 12px;
position:absolute;
top:50%;
left:50%;
margin-left:-478px;
margin-top:-252px;
z-index:2;
}
#dots_home {
width:956px;
height:509px;
background-image:url(img/dotshome.png);
background-repeat:no-repeat;
background-size:900px auto;
background-position: 32px 12px;
position:absolute;
top:50%;
left:50%;
margin-left:-478px;
margin-top:-252px;
z-index:3;
}
#logo_hover {
background:url(img/logo2.png);
background-repeat:no-repeat;
background-position: 1px -573px;
background-size:355px auto;
width:355px;
height:433px;
float:left;
margin:-214px -175px 0px;
padding:600;
top:50%;
left:50%;
z-index:4;
position:absolute;
}
#logo_hover:hover {
background:url(img/logo2.png);
background-repeat:no-repeat;
background-position: 0px 0px;
background-size:355px auto;
width:355px;
height:433px;
float:left;
margin:-214px -175px 0px;
padding:600;
top:50%;
left:50%;
z-index:4;
position:absolute;
}
#name_hover {
background:url(img/name_button.png);
background-repeat:no-repeat;
background-position:0 0;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-194px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:5;
position:absolute;
}
#name_hover:hover {
background:url(img/name_button.png);
background-repeat:no-repeat;
background-position:0 -32px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-194px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:5;
position:absolute;
}
#impressum_hover {
background:url(img/impressum_button.png);
background-repeat:no-repeat;
background-position:0 0;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-135px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:6;
position:absolute;
}
#impressum_hover:hover {
background:url(img/impressum_button.png);
background-repeat:no-repeat;
background-position:0 -32px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-135px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:6;
position:absolute;
}
#kontakt_hover {
background:url(img/kontakt_button.png);
background-repeat:no-repeat;
background-position:0 0;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-76px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:7;
position:absolute;
}
#kontakt_hover:hover {
background:url(img/kontakt_button.png);
background-repeat:no-repeat;
background-position:0 -30px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:-76px -419px 0px;
padding:600;
top:50%;
left:50%;
z-index:7;
position:absolute;
}
#corporate_hover {
background:url(img/corporate_button.png);
background-repeat:no-repeat;
background-position:0 -3px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:45px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:8;
position:absolute;
}
#corporate_hover:hover {
background:url(img/corporate_button.png);
background-repeat:no-repeat;
background-position:0 -33px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:45px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:8;
position:absolute;
}
#grafikdesign_hover {
background:url(img/grafikdesign_button.png);
background-repeat:no-repeat;
background-position:0 -3px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:104px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:9;
position:absolute;
}
#grafikdesign_hover:hover {
background:url(img/grafikdesign_button.png);
background-repeat:no-repeat;
background-position:0 -33px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:104px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:9;
position:absolute;
}
#fotodesign_hover {
background:url(img/fotodesign_button.png);
background-repeat:no-repeat;
background-position:0 -3px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:163px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:10;
position:absolute;
}
#fotodesign_hover:hover {
background:url(img/fotodesign_button.png);
background-repeat:no-repeat;
background-position:0 -33px;
background-size:187px auto;
width:187px;
height:27px;
float:left;
margin:163px 240px 0px;
padding:600;
top:50%;
left:50%;
z-index:10;
position:absolute;
}
in dem was falsch machst :O)warum bei manchen grafiken, vorallem runden, manchmal stücke abgeschnitten werden, je nachdem wie groß die anzeige auf dem bildschirm ist?
Hallo,
es ist schwer dir zu helfen da deine frage/n nicht ganz klar sind.
zu dem css dateien:
da gibts mindest 2 wegen, wo bei keinen falsch oder richtig ist.
1. eine große css wo alles drin steht und halt duch classen und ids unterschiede gemacht werden oder verschachtelungen #impressum .navi oder #kontakt .navi
2. mehrere css datein, eine haupt wo alle grundsachen drin stehen und dann eine pro design wo halt die besonderen sachen drin stehen und je nach design wird halt eine andere eingefügt.
//URL: http://example.com/unterseite
// HTML
<body class="unterseite">.....</body>
// CSS
body.unterseite {
p {
color: #ff0000;
a {
color: #00ff00;
&.active {
color: #fff;
}
}
}
}