zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Linke und rechte spalte laufen nicht mit

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 14.05.2008, 16:19
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 13.05.2008
Beiträge: 4
DaZaRt befindet sich auf einem aufstrebenden Ast
Standard Linke und rechte spalte laufen nicht mit

Gutan tag ich habe mir ein CSS layout gebastelt doch leider fließen die rechte und linke leiste nicht mit der mitteleren mit wie könnte ich dies ändern ?
also anstatt (skize) :

| | |
| | |
| | |
| | |


nur:

| | | <--- soll mitlaufen
|
|
|
|
Ich hoffe ihr versteht was ich meine es handelt sich in der datei um
Code:
  <div class="content_middle">
    <div class="content_middle_left"></div>
    <div class="content_middle_right"></div>
    <div class="content_middle_middle"></div>
  </div>
und
Code:
.content_middle {
	width: auto;
	height: auto;
	clear: both;
}
.content_middle_left {
	float: left;
	width: 30px;
	background-color: #0000FF;
	height: 100%;
}
.content_middle_right {
	float: right;
	width: 30px;
	background-color: #0000FF;
	height: 100%;
}
.content_middle_middle {
	background-color: #00CC33;
	float: none;
	width: auto;
	height: auto;
	left: 30px;
	right: 30px;
	top: 0px;
	margin-top: 0px;
	margin-right: 30px;
	margin-left: 30px;
}

Aber hier nochmal die kompletten dateien :
.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="content">

  <div class="content_top">
    <div class="content_top_left"></div>
    <div class="content_top_right"></div>
    <div class="content_top_middle"></div>
  </div>
  
  <div class="content_middle">
    <div class="content_middle_left"></div>
    <div class="content_middle_right"></div>
    <div class="content_middle_middle"></div>
  </div>

	<div class="content_foot">
    <div class="content_foot_left"></div>
    <div class="content_foot_right"></div>
    <div class="content_foot_middle"></div>
  </div>
 
</div>
</body>
</html>
CSS:
Code:
.content {
	height: auto;
	width: auto;
}
.content_top {
	padding: 0px;
	width: auto;
	height: auto;
}
.content_top_left {
	float: left;
	width: 30px;
	height: 50px;
	background-color: #FF0000;
}
.content_top_right {
	float: right;
	width: 30px;
	height: 50px;
	background-color: #FF0000;
}
.content_top_middle {
	background-color: #000000;
	float: none;
	width: auto;
	height: 50px;
	left: 30px;
	top: 0px;
	right: 30px;
}
.content_middle {
	width: auto;
	height: auto;
	clear: both;
}
.content_middle_left {
	float: left;
	width: 30px;
	background-color: #0000FF;
	height: 100%;
}
.content_middle_right {
	float: right;
	width: 30px;
	background-color: #0000FF;
	height: 100%;
}
.content_middle_middle {
	background-color: #00CC33;
	float: none;
	width: auto;
	height: auto;
	left: 30px;
	right: 30px;
	top: 0px;
	margin-top: 0px;
	margin-right: 30px;
	margin-left: 30px;
}
.content_foot {
	width: auto;
	height: 30px;
	clear: both;
}
.content_foot_left {
	float: left;
	width: 30px;
	background-color: #333333;
	height: 30px;
}
.content_foot_right {
	float: right;
	width: 30px;
	height: 30px;
	background-color: #666666;
}
.content_foot_middle {
	background-color: #996699;
	float: none;
	width: auto;
	height: 30px;
	left: 30px;
	right: 30px;
	top: 0px;
	margin-top: 0px;
	margin-right: 30px;
	margin-left: 30px;
}
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 14.05.2008, 18:50
Benutzer
neuer user
 
Registriert seit: 02.03.2008
Beiträge: 44
Solacanea befindet sich auf einem aufstrebenden Ast
Standard

Also in dem Codebeispiel sieht man die unterschiedliche Spaltenlänge noch nicht, aber sobald Du da Content reinpackt, wirst Du mit Faux Columns arbeiten müssen, denk ich mal.
Mit Zitat antworten
Sponsored Links
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Lexible rechte und linke Spalte - Feste Mittlere Spalte Senga CSS 2 18.04.2009 18:45
div ist im IE weg, linke spalte in zwei zeilen teilen... unicorn CSS 5 22.12.2006 11:35
Rechte Spalte genauso lang wie linke Spalte RalfEggert CSS 11 25.01.2005 17:02
Zweispaltiges Layout - rechte Spalte gleichgroß wie linke Krieju CSS 28 22.08.2004 14:44
Nachtrag: rechte Spalte z.T. durch Fuss-div überdeckt Savigny CSS 2 04.05.2004 19:36


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:19 Uhr.