HTML/CSS Problem mit absoluter position
HTML/CSS Problem mit absoluter position
Ich versuche eine Textzeile an den untersten Rand zu positionieren.
Aber diese Zeile:
<div style="text-align: center; position:absolute; bottom:0px;">
<SP>© Kermit: 1998 - 2005<br>
Materials maybe freely copied and distributed subject to the<b> inclusion</b> of the copyright notice and my Web site address.</SP>
("SP" ist in der CSS Datei wie folgt definiert:
SP { color: #33FF33;
font-size: 80%; } /* Leuchtgrüne Schrift */)
landet nicht in der mitte sondern am linken Rand. Warum?
Aber diese Zeile:
<div style="text-align: center; position:absolute; bottom:0px;">
<SP>© Kermit: 1998 - 2005<br>
Materials maybe freely copied and distributed subject to the<b> inclusion</b> of the copyright notice and my Web site address.</SP>
("SP" ist in der CSS Datei wie folgt definiert:
SP { color: #33FF33;
font-size: 80%; } /* Leuchtgrüne Schrift */)
landet nicht in der mitte sondern am linken Rand. Warum?
-
- Mitglied
- Beiträge: 1862
- Registriert: 23.12.2004 22:46
Re: HTML/CSS Problem mit absoluter position
Müsste das nicht eher wie folgt lauten?
.css-Datei (Punkt vor "sp" beachten):
EDITIERT:
Auf Selfhtml haben Sie noch eine zusätzliche Angabe:
<div style="position:absolute; bottom:0px; left:100px;">
Mehr dazu hier:
http://de.selfhtml.org/css/eigenschafte ... ierung.htm
LG, IPB_Flüchtling
.css-Datei (Punkt vor "sp" beachten):
HTML-Quelltext:.sp { color: #33FF33;
font-size: 80%; }
Oder ist das egal? Sorry, wenn ich Blödsinn geschrieben habe. Bin etwas übermüdet.<p class="sp">© Kermit: 1998 - 2005 usw.</p>
EDITIERT:
Auf Selfhtml haben Sie noch eine zusätzliche Angabe:
<div style="position:absolute; bottom:0px; left:100px;">
Mehr dazu hier:
http://de.selfhtml.org/css/eigenschafte ... ierung.htm
LG, IPB_Flüchtling
Re: HTML/CSS Problem mit absoluter position
IPB_Flüchtling hat geschrieben:.css-Datei (Punkt vor "sp" beachten):
HTML-Quelltext:.sp { color: #33FF33;
font-size: 80%; }
<p class="sp">© Kermit: 1998 - 2005 usw.</p>
KB:knigge
Ich habe jetzt einiges rumprobiert aber es funktioniert immer noch nicht.
Die eingebundene Zeile lautet jetzt:
Und "sp" ist in der css datei wie folgt definiert:
Wo liegt mein Fehler???
Die eingebundene Zeile lautet jetzt:
Code: Alles auswählen
<p class="sp">© Kermit: 1998 - 2005<br>
Materials maybe freely copied and distributed subject to the<b> inclusion</b> of the copyright notice and my Web site address.</p>
Code: Alles auswählen
.sp { color: #33FF33;
text-align: center;
position: absolute;
bottom: 0px;
font-size: 80%; } /* Leuchtgrüne Schrift */