2 Boxen, 1 fest, die andere Variabel

Status
Nicht offen für weitere Antworten.

g3radiochris

Mitglied
Guten Abend,

ich versuche schon eine ganze Zeit es irgendwie hinzukriegen, will aber nicht wirklich gelingen. Vielleicht weiß einer von euch mehr.

Ich habe 2 Boxen diese sollen auf einer Ebene sein, die 1. Box soll von der Breite varaibel sein und den rest des Bildschirmes füllen, die 2. Box soll immer genau 300px sein.

Im Anhang eine Skizze, wie ich es meine.

Wie kann ich das realisieren?
Ist dies überhaupt möglich?

Wäre über Hilfe sehr verbunden!
 

Anhänge

  • super.PNG
    super.PNG
    2 KB · Aufrufe: 7
Hi Chris,

es kommt doch immer sehr drauf an, in welchem Umfeld Du so etwas einfügen möchtest, denke ich.
Aber so geht es:

HTML:
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
	<style type="text/css">
		#left {
			background: pink;
			margin-right: 300px;
		}
		
		#right {
			width: 300px;
			float: right;
			background: lightblue;
		}
	</style>
</head>

<body>



<div id="right">
only 300px only 300px only 300px only 300px only 300px only 300px 
only 300px only 300px only 300px only 300px only 300px only 300px 
only 300px only 300px only 300px only 300px only 300px only 300px 
</div>
<div id="left">
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar 
foo bar foo bar foo bar foo bar foo bar foo bar foo bar foo bar 
</div>
</body>
</html>

Cheers, hannes

p.s.
wieso steht da eigentlich 0:33, es ist doch erst 23:33... ich bekam grade einen Schreck ;)
 
Zuletzt bearbeitet:
Status
Nicht offen für weitere Antworten.
Zurück