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.
<!DOCTYPE html>
<html>
<head>
<style>
.container
{
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.mein-blauer-div {
background: #2222d3;
padding: 5px 15px;
}
.mein-roter-div {
background: #d11111;
padding: 5px 15px;
}
</style>
</head>
<body>
<div class="container">
<div class="mein-blauer-div">
<h1>Ich bin blau</h1>
Scroll Up and Down this page to see the parallax scrolling effect.
This div is just here to enable scrolling.
Tip: Try to remove the background-attachment property to remove the scrolling effect.
</div>
<div class="mein-roter-div">
<h1>Ich bin rot</h1>
Scroll Up and Down this page to see the parallax scrolling effect.
This div is just here to enable scrolling.
Tip: Try to remove the background-attachment property to remove the scrolling effect.
</div>
<div style="background: #bcbc1a;" class="mein-roter-div"> <!-- direkt im html -->
<h1>Ich bin gelb</h1>
Scroll Up and Down this page to see the parallax scrolling effect.
This div is just here to enable scrolling.
Tip: Try to remove the background-attachment property to remove the scrolling effect.
</div>
</div>
</body>
</html>
<style>
magie hier rein ...
</style>
<div style="background: #bcbc1a;" class="mein-roter-div">
<link href="name.css" rel="stylesheet" />
.container
{
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
.mein-blauer-div {
background: #2222d3;
width: 50%;
float: left;
}
.mein-roter-div {
background: #d11111;
width: 50%;
float: left;
}
.container h1{
color: pink;
}
Dazu müssen wir Deinen Quellcode sehen.vielen dank! aber ich konnte es leider nicht umzetzen was habe ich falsch gemacht?
Dazu müssen wir Deinen Quellcode sehen.
Hi,
also es macht weniger Sinn zu Fragen, ob das ganze auch NUR mit HTML geht, als CSS zu lernen.
Ich habe CSS mit folgender Seite gelernt und kann es Dir für den Einstieg ans Herz legen:
https://www.coding-lab.de/tutorials/css/
Das coolste ist nämlich dabei, dass Du pro Lektion ein Video hast und einen Artikel, der dann nochmal schriftlich darauf eingeht. Mit dem Editor kannst Du dann live mittesten.
Natürlich solltest Du dann auch weitere Ressourcen nehmen:
http://de.html.net/tutorials/css/
https://developer.mozilla.org/de/docs/Web/CSS
Grüße
Dirk
Ähmmmmm, bitte was?weißt du wie man von HTML Editor auf CSS einstellen kann?