Hallo zusammen
ich versuche mittels CSS 3 unterschiedl. breite Farbstreifen über die gesamte Bildschirmbreite zu platzieren.
Ich habe es auch hinbekommen, frage mich allerdings, ob das so "normal" ist bzw ob man ds lieber anders lösen sollte.
Mein CSS
#top1 {
background-color:#ff0000;
width:100%;
height:110px;
position:absolute;
left: 0px;
top: 0px;
}
#top2 {
background-color:#00ff00;
width:100%;
height:20px;
position:absolute;
left: 0px;
top: 118px;
}
#top3 {
background-color:#0000ff;
width:100%;
height:40px;
position:absolute;
left: 0px;
top: 135px;
}
und im HTML dann:
<body>
<div id="top1"></div>
<div id="top2"></div>
<div id="top3"></div>
...
*******
wie gesagt: es funktioniert. Aber "macht man das so"?
danke und gruß
benben