Matthias Apsel: DIVs nebeneinander - Positionierung

Beitrag lesen

Om nah hoo pez nyeetz, SHo!

wenn noch jmd eine Idee hat für Floaten und das Mittlere mittig positionieren: her damit!

Was gefällt dir an meiner zweiten nicht?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title></title>
    <style type="text/css">
	  html, body {margin: 0; padding: 0;}
          div {height: 123px; background: red;}
	  #links {width: 170px; float: left;}
	  #rechts{width: 170px; float:right;}
	  #mitte {width: 100%; background: green;}
    </style>
  </head>
  <body>
    <div id="links">Links</div>
    <div id="rechts">Rechts</div>
    <div id="mitte">Mitte</div>
  </body>
</html>

Dass "links", "rechts", "mitte" keine coolen Bezeichner sind, brauche ich wohl nicht zu erwähnen.

Matthias

--
Wer ein Problem beschreiben kann, hat es schon halb gelöst.                                             (Julian Huxley) http://www.billiger-im-urlaub.de/kreis_sw.gif