XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   CSS (http://xhtmlforum.de/forumdisplay.php?f=73)
-   -   Zwei div container nebeneinander? (http://xhtmlforum.de/showthread.php?t=64009)

hattori_hanzo 08.03.2011 15:46

Zwei div container nebeneinander?
 
Hallo Leute

Bin langsam am verzweifeln..
Ich versuche in einem div container zwei schmalere div container nebeneinander zu platzieren. Der erste sollte Links bündig sein und der Zweite rechts bündig. Jedoch erscheinen beide immer untereinander und am linken Rand :cry:

html
<div id="header" role="banner">
<div id="logo_website" align="left"><img src="images/logo-website.jpg" width="350" height="75" /></div>
<div id="ad_banner_top" align="right"><img src="images/banner-vorlagen/banner.png" width="350" height="75" /></div>
</div>


CSS
#header { padding: 20px 2em 1em 20px; color: #000; background: #fff; }
#logo_website { width: 350px; height: 75px; align: left; }
#ad_banner_top { width: 350px; height: 75px; align: right; }


...ob es ev. helfen könnte, wenn ich die Tastatur kaputt schlage..

Gruss Markus

pkipper 08.03.2011 15:54

Hi hattori_hanzo,

Schau dir doch bitte mal das FAQ unter der CSS Rubrik an. Dort findest du Beispiele und Lösungen zu solchen Fragen.

Liebe Grüsse,

Phil

Manfred62 08.03.2011 17:27

Der Code ist Murks.
Code:

#header { padding: 20px 2em 1em 20px; color: #000; background: #ccc;float: left; }
#logo_website { width: 350px; height: 75px; float: left; }
#ad_banner_top { width: 350px; height: 75px; float: right; }

    <div id="header">
      <div id="logo_website">
        <img src="....." width="350" height="75" />
      </div>
      <div id="ad_banner_top">
        <img src="....." width="350" height="75" />
      </div>
    </div>

Ohne die Größenangabe bei den id's gehts auch, da die Bilder eine Größe haben.

Manfred


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:47 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023