Orlando: Text zum Bild ausrichten

Beitrag lesen

Hi Thoralf,

Ich möchte das beide Elemente Bild und Text so zueinander ausgerichtet sind das der Text rechts vom Bild und da mittig steht.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
 <title>Mit einer Tabelle wär's einfacher</title>
 <style type="text/css">
  #aussen {
    width:410px;
    height:206px;
    margin-left:auto;
    margin-right:auto;
    border:1px solid black;
    padding:2px;
  }
  #links {
    text-align:center;
    width:200px;
    height:200px;
    float:left;
    border:1px solid black;
  }
  #rechts {
    width:200px;
    height:200px;
    text-align:center;
    border:1px solid black;
    padding-top:60px;
  }
 </style>

</head>
<body>

<div id="aussen">
 <div id="links">
  <img src="" width="198" height="198" alt="Bild" />
 </div>
 <div id="rechts">
  <p>bla bla bla bla</p>
  <p>bla bla bla bla</p>
  <p>bla bla bla bla</p>
 </div>
</div>

</body>
</html>

LG Roland

--
[x] Für das Thema (BARRIEREFREIHEIT) im Forum
http://aktuell.de.selfhtml.org/tippstricks/beitrag.htm
ss:| zu:} ls:} fo:} de:> va:} ch:| sh:) n4:& rl:| br:< js:{ ie:{ fl:{ mo:|
(siehe http://emmanuel.dammerer.at/selfcode.html)