fastix®: Einfachen <TABLE> mit <DIV> darstellen

Beitrag lesen

Moin!

Seit wann kann man Elemente als 'inline' anzeigen lassen und ihnen trotzdem eine Breitenagabe geben?

Hm. Das ausgerechnet geht.

<div style="padding:0px;">
  <div style="display:inline;float:left;height:100%;width:32%;background-color:#ffc0c0;padding:5px;margin:0px;border:thin solid red">Inhalt Zelle 1</div>
  <div style="display:inline;float:left;height:100%;width:32%;background-color:#c0ffc0;padding:5px;margin:0px;border:thin solid red">Zeile1<br>Zeile2<br>Zeile3<br>Zeile4</div>
  <div style="display:inline;float:left;height:100%;width:32%;background-color:#c0c0ff;padding:5px;margin:0px;border:thin solid red">Inhalt Zelle 2</div>
  <br clear="all">
</div>

<hr>

<div style="padding:0px;width:100%">
  <div style="display:block;float:left;height:100%;width:32%;background-color:#ffc0c0;padding:5px;margin:0px;border:thin solid red">Inhalt Zelle 1</div>
  <div style="display:block;float:left;height:100%;width:32%;background-color:#c0ffc0;padding:5px;margin:0px;border:thin solid red">Zeile1<br>Zeile2</div>
  <div style="display:block;float:left;height:100%;width:32%;background-color:#c0c0ff;padding:5px;margin:0px;border:thin solid red">Inhalt Zelle 2</div>
  <br clear="all">
</div>

Nur die Höhenanpassung will nicht.

Die geht wiederum !nur im Mozilla! mit folgender Methode (als "Tabellen- Div's"):
http://selfhtml.teamone.de/css/eigenschaften/anzeige/display2.htm
Dafür kann man dann keine Breite zuweisen....

MFFG (Mit freundlich- friedfertigem Grinsen)

fastix®

--
Meinereinerselbst ist auf der Suche nach Aufträgen