[gelöst] Texte im Floorplan zentrieren css margin oder center?

Begonnen von franky08, 06 April 2015, 18:10:01

Vorheriges Thema - Nächstes Thema

franky08

Hallo, ich habe auf einem Lenovo Tablet WVC mit 2 Floorplänen laufen, die Floorpläne wechseln über JavaScript alle 30 sec.
Auf dem 2. Floorplan wird lediglich die aktuelle Uhrzeit, die Regenmenge und Außentemperatur dargestellt. Eine eigene css sorgt für das Layout:
#Zeit_dummy {font-size:152px; color: #3A5FCD; font-weight: bold }
#Lenovo_Garten_dummy {font-size:56px; color: #FF7F24; font-weight: bold; }
#Lenovo_Regen_dummy {font-size:56px; color: #FF7F24; font-weight: bold; }



Das Problem ist je nachdem wie der Inhalt von "Lenovo_Regen_dummy" oder "Lenovo_Garten_dummy" ist, verschiebt sich die Ausgabe im Floorplan. margin xpx ypx führt leider nicht zum Erfolg. Ich habe darauf hin probiert über center die Ausgabe zentriert darzustellen.
Gemäß:
Inhalte stammen von: HTTP://WWW.WEB-TOOLBOX.NET/WEBTOOLBOX/CSS/CSS-OBJEKT-ZENTRIEREN02.HTM#IXZZ3WXUKOTYQ
www.clickstart.de

<div style="text-align: center;"> <div style="width: 300px; margin: 0px auto; text-align: left;"> Inhalt </div> </div>


leider komme ich da nicht richtig weiter.
Hat jemand einen Rat für mich?

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

#1
OK, funktioniert leider nicht:

#Zeit_dummy {font-size:152px; color: #3A5FCD; font-weight: bold; display: block; margin-left: auto; margin-right: auto; }
#Lenovo_Garten_dummy {font-size:56px; color: #FF7F24; font-weight: bold; display: block; margin-left: auto; margin-right: auto; }
#Lenovo_Regen_dummy {font-size:56px; color: #FF7F24; font-weight: bold; display: block; margin-left: auto; margin-right: auto; }



VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

franky08

Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1