TP Underground Lounge 07/08
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 04.07.2003, 12:10   #1
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg

Bild mittig ausrichten


Hey!

Ich möchte ein Bild mittig in einem <div>-Layer ausrichten! Eigentlich hätte ich mir gedacht dass das mit vertical-align:middle; funktionieren müsste, tut es aber nicht!
Ich habs im IE6, NN7 und Opera7.11 auf Win2000 probiert, in allen wird das Bild linksbündig angezeigt!
Hier mal der betroffene CSS-Code:
Code:
.standortekarte {
	background-color: #EFF3F7;
	width: 100%;
	vertical-align:middle;
	}
	
.standortekartebild {
	border:none;
	vertical-align:middle;
	}

.standortekarteheader {
	background-color:#FCFDFE; 
	font-size: 0.7em;
	color:#04314F;
	padding-left:10px; 
	padding-top:2px; 
	padding-bottom:2px;
}
Hab noch ein Bild angehängt wie es jetzt aussieht (die Landkarte sollte eigentlich mittig sein)!!

lg
Flow
Angehängte Grafiken
Dateityp: jpg standorte.jpg (3,0 KB, 40x aufgerufen)
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten


Alt 04.07.2003, 12:16   #2
TP-Special Mod
 
Benutzerbild von webmichl
 
Registriert seit: Jun 2001
Ort: 8°21' O 49°1' N
webmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine User
Wem ordnest Du die Classes zu? Dem Bild oder dem Div?

[edit]Argh - erst genau lesen, dann antworten, Michl!

Könnte ein Zeilenumbruchproblem im Code sein - schreib die komplette DIV-Anweisung mal in eine Zeile

Geändert von webmichl (04.07.2003 um 12:22 Uhr).
webmichl ist offline   Mit Zitat antworten
Alt 04.07.2003, 12:32   #3
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Hier mal der HTML-Code:

Code:
      <div id="rechtercontainer">
        <div id="rechtercontainer-innen">
          <!-- Anfang Standorte Karte -->
          <div class="standortekarteheader">Standorte</div>
          <div class="standortekarte">
          	<a href="standorte.php" ><img class="standortekartebild" src="images/oesterreich.gif" alt="Landkarte mit Standorten"/></a>
          </div>
          <!-- Ende Standorte Karte -->
        </div>
      </div>
      <!-- End Tag rechtercontainer -->
lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 12:37   #4
TP-Special Mod
 
Benutzerbild von webmichl
 
Registriert seit: Jun 2001
Ort: 8°21' O 49°1' N
webmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine Userwebmichl lebt für das TP und seine User
Versuchs mal mit

<div class="standortekarte"><a href="standorte.php" ><img class="standortekartebild" src="images/oesterreich.gif" alt="Landkarte mit Standorten"/></a></div>

machmal hilfts wirklich...
webmichl ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:19   #5
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
mittig ausrichten =

text-align: center

betr. mittig im sinne von vertikal mittig: da ist der tag von dir an sich richtig - aber versuch mit dem container ohne fixe höhe zu arbeiten und leg das bild rein - in einen container!

gib mal die klasse für das bild weg - es reicht, wenn das unformatierte bild in einer definierte klasse liegt :-)
prefix ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:34   #6
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Ähhh, ok
So da ich hab jetzt die Klasse aus dem img-Tag entfernt, fixe höhe im css hab ich eh nicht!
Bis jetzt hat sich nicht viel geändert ausser das dieser besch... default-Rahmen um das Bild wieder da ist!
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:34   #7
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
img {
border: none;
}
prefix ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:38   #8
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
OK, darauf hätt ich jetzt auch selber drauf kommen können !!
Das bild ist aber noch immer linksbündig!

HTML-Code:
Code:
      <div id="rechtercontainer">
        <div id="rechtercontainer-innen">
          <!-- Anfang Standorte Karte -->
          <div class="standortekarteheader">Standorte</div>
          	<div class="standortekarte">
          		<a href="standorte.php" ><img src="images/oesterreich.gif" alt="Landkarte mit Standorten"/></a>
          	</div>
          <!-- Ende Standorte Karte -->
        </div>
      </div>
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:43   #9
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Wie wars das mit CSS und Hass-Liebe !!
Momentan könnte ich das ganze Zeug durch Sonne, Mond und Sterne schiessen!

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:44   #10
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
http://www.prefix.at/v5_1/test/flo/

funktioniert doch
prefix ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:52   #11
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
www.flowworks.at/vmg

Bei mir nicht!
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:55   #12
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
starte den html-bereich mal bitte richtig:

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
prefix ist offline   Mit Zitat antworten
Alt 04.07.2003, 13:59   #13
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
Warum das jetzt schon wieder verschwunden ist frag ich mich auch! Habs eigentlich eingefügt , naja geändert hat es aber auch nix!

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Alt 04.07.2003, 14:00   #14
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
Code:
img {
	border: none;
}

img a {
	border: none;
}

.standortekarte {
	background-color: #EFF3F7;
	width: 100%;
	vertical-align:middle;
	text-align: center;
	}
	
.standortekartebild {
	border:none;
	vertical-align:middle;
	}

.standortekarteheader {
	background-color:#FCFDFE; 
	font-size: 0.7em;
	color:#04314F;
	padding-left:10px; 
	padding-top:2px; 
	padding-bottom:2px;
}
das ist mein funktionierendes style-sheet!

hast den cache schon geleert?
prefix ist offline   Mit Zitat antworten
Alt 04.07.2003, 14:15   #15
TP-Veteran
 
Benutzerbild von Flow09
 
Registriert seit: Jun 2001
Ort: Wien
Flow09 ist auf einem guten Weg
So jetzt passts endlich!
War mein Fehler!!
Hab einen kleinen Syntax-Fehler gehabt --> mit text-aling wirds nicht funktionieren

Danke Dir!

lg
Flow
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Flow09 ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > HTML Puristen
Bild mittig ausrichten Bild mittig ausrichten
« Drei Ebenen, davon eine mit Laufleiste? | Links, Linkbilder, Buttons ohne Umrandung »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:09 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67