Autor Beitrag
andras
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Sa 24.03.07 08:32 
hi!
ich verzweifle!!!!!!!!!
alles was ich will ist eine tabelle, die in der mitte der seite ist, aber der text in der zelle soll links beginnen.
ausblenden Quelltext
1:
2:
3:
4:
5:
<table width="470" align="center">
  <tr>
    <td><a name="berichtanker"></a><? echo $bericht; ?></td>
  </tr>
</table>

mi obigem code ist die tabelle zwar schön in der mitte der text aber auch :(

wenn ich das probiere:
ausblenden Quelltext
1:
2:
3:
...
<tr align="left">
...

oder das
ausblenden Quelltext
1:
2:
3:
...
<td align="left">
...

tut sich gar nix :bawling: *amverzweifelnsein*
BITTE, hat jemand eine lösung, bzw einen tipp!!!!
Danke für jede antwort!!!
mfg
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 24.03.07 08:42 
Wofür gibt es denn CSS?
ausblenden Quelltext
1:
style="text-align: left;"					

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
andras Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 460

Win XP, Win Vista Home Premium, Ubuntu Dapper Drake
Delphi 2005 Pers
BeitragVerfasst: Sa 24.03.07 10:00 
JUHUUUUUU :dance: :dance2: :party:
es geht!!!
DANKE!!! :flehan:
alcaeus
half ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 226



BeitragVerfasst: Sa 24.03.07 10:30 
Falsch...zentriert wird mittels margin:auto. text-align bestimmt die Textausrichtung, und nur im IE bzw. im FF-Quirks-Mode die Ausrichtung des Containers. Dann hast du auch keine solchen Probleme wie mit der Textausrichtung mehr ;)

Greetz
alcaeus
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 24.03.07 12:21 
Es ging ja auch nur um die Text-Ausrichtung und nicht die Ausrichtung der/s Container.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
alcaeus
half ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 226



BeitragVerfasst: Sa 24.03.07 16:36 
Das Text-Ausrichtungs-Problem hatte er ja nur weil er die Tabelle selbst falsch ausgerichtet hat ;)

Nur mal so als Erinnerung:
user profile iconandras hat folgendes geschrieben:
alles was ich will ist eine tabelle, die in der mitte der seite ist, aber der text in der zelle soll links beginnen.

Das erreicht man mit margin:auto ;)

Wie dem auch sei: IIRC mag Fx text-align:center; nur im Quirks-Mode, der IE margin:auto aber nur im Standard-Mode. Ich lass euch raten, was besser ist ;)

Greetz
alcaeus