Cool Master
Fleet Admiral
- Registriert
- Dez. 2005
- Beiträge
- 37.469
Moin,
ich habe ein kleines problem. Und zwar überarbeite ich gerade eine Webseite um sie in ein CMS zu bekommen. Nun habe ich aber ein kleines Problem und zwar das so soll es aussehen:
Leider sieht das ganze bei mir so aus:
Mein Code dafür sieht so aus:
Hier noch das CSS:
Was ich nun möchte ist da Termine etc auch dazu kommen und natürlich auch entfernt werden hätte ich es gerne so das sich die höhe bzw. top:xyz; dazu anpassen.
Geht das so wie ich das will mit CSS/HTML oder benötige ich dafür JS?
ich habe ein kleines problem. Und zwar überarbeite ich gerade eine Webseite um sie in ein CMS zu bekommen. Nun habe ich aber ein kleines Problem und zwar das so soll es aussehen:
Leider sieht das ganze bei mir so aus:
Mein Code dafür sieht so aus:
HTML:
<div id="rechts">
<div class="bg" id="bg_1">{% placeholder "BG 1" %}
<div id="punkt_1">{% placeholder "Punkt 1" %}</div>
</div>
<div class="bg" id="bg_2">{% placeholder "BG 2" %}
<div id="punkt_2">{% placeholder "Punkt 2" %}</div>
</div>
<div class="bg" id="bg_3">{% placeholder "BG 3" %}
<div id="punkt_3">{% placeholder "Punkt 3" %}</div>
</div>
<div class="bg" id="bg_4">{% placeholder "BG 4" %}
<div id="punkt_4">{% placeholder "Punkt 4" %}</div>
</div>
<div class="bg" id="bg_5">{% placeholder "BG 5" %}
<div id="punkt_5">{% placeholder "Punkt 5" %}</div>
</div>
</div>
Code:
#rechts{
height: 950px;
left: 659px;
top: 140px;
width: 250px;
position: absolute;
}
.bg{
background: gray;
color: #FFFFFF;
font-family: Verdana;
font-size: 12pt;
font-style: italic;
font-weight: bold;
height: 21px;
left: 0px;
position: absolute;
text-align: center;
width: 250px;
}
#bg_1 {
position: absolute;
top: 0px;
width: 250px;
}
#bg_2{
position: absolute;
top: 340px;
width: 250px;
}
#bg_3{
position: absolute;
top: 560px;
width: 250px;
}
#bg_4{
position: absolute;
top: 800px;
width: 250px;
}
#bg_5{
position: absolute;
top: 890px;
width: 250px;
}
Geht das so wie ich das will mit CSS/HTML oder benötige ich dafür JS?
Zuletzt bearbeitet: