• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Mittiges Bild

jrq-software.de

Neues Mitglied
HTML:
<div style="width: 100%; position: relative; top: 0px; height: 0px; z-index:1;">
<img alt="" src="bilder/balken_rot_oben.png" width="100%" height="126px"/>
</div>

<div style="left: 200px; width: 400px; position: relative; top: 0px; height: 2px; z-index:2;">
<img src="bilder/logo_oben.png" weight="400px" height="118px" alt="...">
</div>

Wie bekomme ich das zweite bild zentriert?

Ich bräuchte etwas wie "left: 50% - 200px"! (200px = hälfte der bildbreite, also machen 50% - hälte = left = totale mitte)

Ich hoffe, ihr könnt mir helfen!
 
Werbung:
Werbung:
Zurück
Oben