Hallo Forum
Ich bin neu bei Typolight und versuche eine scheinbar ambitionierte Seite umzusetzen. Hier der Link zur statischen HTML-Seite:
http://www.albertfrida.ch
Hingekriegt habe ich den Header, die Navi und das Mainframe. Aber den Artikel in der rechten Spalte bei Home, sowie die Listenboxen unter "Zimmer" kriege ich einfach nicht hin. Dasselbe mit den Bilderrahmen.
Alle diese Elemente habe ich mit dem Sliding door Prinzip umgesetzt. Dafür müsste ich aber ein Artikel-Modul mit den entsprechenden div-Tags erstellen können. Übe nun 2 Tage aber komme nicht drauf.
Fangen wir mal mit dem Bilderrahmen an:
Bilderrahmen.png
Die breite ist fix, die Höhe variabel. CSS-Code:
Code:
#fotobox280-top {
width: 280px;
height: 12px;
background-image: url(/images/fotobox280-top.png);
background-repeat: no-repeat;
background-position: left top;
}
#fotobox280-bottom {
background:url("/images/fotobox280-bottom.png") no-repeat left bottom;
padding-bottom: 12px;
text-align: center;
}
HTML-Code:
Code:
<div id="fotobox205">
<div id="fotobox205-top"></div>
<div id="fotobox205-bottom">
<img src="/images/albertfrida.jpg" width="179" height="136" />
</div id="fotobox205-bottom">
</div id="fotobox">
Der Nutzer müsste jetzt einfach ein Bild einfügen müssen, der Rahmen sollte automatisch entstehen.
Das selbe mit der Zimmerliste:
Zimmerliste.jpg
Der Nutzer sollte nur pro Zimmer einen Artikel hinzufügen müssen. Die Formatierung folgte automatisch. Höhe ist übrigens variabel, breite fix. Bis jetzt hatte ich das so umgesetzt:
CSS:
Code:
#listbox {
float:left;
width: 860px;
margin-left: 100px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
letter-spacing: 0.2em;
text-align: left;
}
#listbox-top {
height:20px;
background-image: url(/images/listbox-top.png);
background-repeat: no-repeat;
background-position: left top;
}
#listbox-bottom {
background-image:url(/images/listbox-bottom.png);
padding-bottom: 20px;
background-repeat: no-repeat;
background-position: left bottom;
min-height:120px;
}
HTML:
Code:
<div id="listbox">
<div id="listbox-top"></div>
<div id="listbox-bottom">
<div id="fotobox" style="width:280px; float:left; margin-left:20px;">
<div id="fotobox280-top"></div>
<div id="fotobox280-bottom">
<a href="/images/_high/einzelzimmerA.jpg" rel="lightbox" title="">
<img src="/images/_thumb/einzelzimmerA.jpg" width="260" height="173" /> </a> </div id="fotobox280-bottom">
</div id="fotobox">
<div id="textbox" style="float:left; width:500px; padding-left:20px; padding-right:0px">
<h2> Zimmer Comfort</h2>
<p>Zimmer mit privater Dusche und Toilette und TV.</p>
<p class="price">Als Doppelzimmer CHF 160.00 bis CHF 180.00 Zimmer/Nacht <br />
inkl. Frühstück, Service und Taxen<br />
<br />
Als Einzelzimmer CHF 110.00 bis CHF 130.00 Zimmer/Nacht <br />
inkl. Frühstück, Service und Taxen</p>
<div id="button" style="float:left">
<div id="button-black-left"></div>
<div id="button-black"><a href="https://secure.netzone.ch/landhausbern.ch/df_reservation.htm" target="_blank">Reservationsanfrage</a></div>
</div id="button">
</div id="textbox">
<div id="rowblocker" style="clear:both;"></div>
</div id="listbox-bottom">
Kann mir jemand Tipps geben, wie vorgehen?