power-box.de
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 30.01.2008, 05:13   #1
TP-Junior
 
Registriert seit: Oct 2004
Rieglicky macht alles soweit korrekt

Probleme mit CSS Ausrichtung


Hallo, meine Website besteht aus einem Maincontent div, der 3 div container enthält:#

Linke Seite: Contentbereich, darunter Block mit fester Größe, beide divs mit identischer Breite
Rechte Seite: Sidebar, deren Höhe der des Contents plus des Blocks entsprechen soll.

Diese 3 divs stellen den Hauptinhalt dar, befinden sich also im maincontent div (alle gefloatet)

Momentan habe ich folgende CSS Probleme:
1) Die Sidebar rechts schließt unten nicht ab, dh sie ist nur so lang wie das "content" div
2) Ich weiß nicht wie ich das div links unten am unteren rand fixiert, während der content bereich noch flexibel bleiben soll (dh bei längeren texten sich automatisch anpasst)

Für Hilfe bin ich sehr dankbar!

Gruß
Stefan

Quelltext:
head:

#sidebar {
float: right; /* since this element is floated, a width must be given */
width: 150px;
height: 50%; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 10px;
}
#content{
float: left; /* since this element is floated, a width must be given */
width: 565px;
/* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #cb001d; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 10px;
}
#block{
float: left; /* since this element is floated, a width must be given */
width: 565px;
height: 100px;
/* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #243C49; /* the background color will be displayed for the length of the content in the column, but no further */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
left: 47px;
top: -38px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style>


HTML

<div id="mainContent">
<div id="sidebar"></div>
<div id="content"></div>
<div id="block"></div>
</div>
</div><br class="clearfloat" />
<!-- end #container --></div>

Geändert von Rieglicky (30.01.2008 um 05:22 Uhr).
Rieglicky ist offline   Mit Zitat antworten


Alt 30.01.2008, 12:20   #2
TP-Junior
 
Registriert seit: Aug 2004
able2create macht alles soweit korrekt
Hallo!

Könntest du ein Grafik dazustellen damit man sieht wie es genau aussehen soll?
Weiß noch nicht 100% was du meinst

Gruß
able2create ist offline   Mit Zitat antworten
Alt 04.02.2008, 05:06   #3
TP-Junior
 
Registriert seit: Oct 2004
Rieglicky macht alles soweit korrekt
Hallo, das Design soll wie folgt aussehen:


------------------------------------------
|xxxxxxxxxxxxheadxxxxxxxxxxxxxxxxxxxxxxxx|
------------------------------------------
|xxxxINHALTxxxxxxxxxxxx| |xxSIDEBARxxxx|
|xxxxxxxxxxxxxxxxxxxxxxx| |xxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxx| |xxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxx| |xxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxx| |xxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxx| |xxxxxxxxxxxxxx|
|YYYYYYBLOCKYYYYYYYYY| |xxxxxxxxxxxxxx|
|----------------------------| |xxxxxxxxxxxxxx|
------------------------------------------

Sorry, aber besser lässt sich es nicht darstellen
Rieglicky ist offline   Mit Zitat antworten
Alt 04.02.2008, 09:55   #4
TP-Junior
 
Registriert seit: Aug 2004
able2create macht alles soweit korrekt

Hallo!


Hab mal schnell was zusammengebastelt - ich hoffe das ist so ca das was du benötigst:

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>
<title>Tut</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html, body {
	height: 100%;
}
body {
	margin: 0; 
	padding: 0;
}
#wrapper {
	width: 43em; 
	min-height: 100%; 
	position: relative;
}
* html #wrapper {
	height: 100%;
}
#footer {
	position: absolute; 
	bottom: 0; 
	left: 0; 
	width: 100%;
}
* html #footer {
	bottom: -1px;
}
#content {
	margin-bottom: 2em; 
	float: left;
}
body {
	background: white; 
	font-family: "lucida grande", "lucida sans", "trebuchet ms", verdana, sans-serif;
}
h1 {
	color: #333;
}
#header {
	background: #333; 
	text-align: center; 
	color: white; 
	padding: 8px 0; 
	font-weight: bold;
} 
#wrapper {
	border-right: 150px solid #000; 
}
#footer {
	background: #333; 
	text-align: center; 
	color: white; 
	padding: 8px 0; 
	font-weight: bold;
} 
#content {
	padding: 10px;
}
pre, code {
	background: #f3f3f3;
}
pre {
	padding: 3px;
}
</style>
</head>
<body>
  <div id="wrapper">
  <div id="header">Da ist der header</div>
   <div id="content">
    <h1>Hoff das passt so!</h1>
    <p>Hier ist der Content drinnen...</p>
   </div>
   <br style="clear: both;" />
   <div id="footer">
    Da is der footer
   </div>
  </div>
 </body>
</html>
Gruß M
able2create ist offline   Mit Zitat antworten
Alt 05.02.2008, 07:33   #5
TP-Junior
 
Registriert seit: Oct 2004
Rieglicky macht alles soweit korrekt
Dank dir bis hierhin, ich werde es gleich mal ausprobieren!
Rieglicky ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Dreamweaver
Probleme mit CSS Ausrichtung Probleme mit CSS Ausrichtung
« Seiten(-Inhalte) mit DW in anderen Seiten einer Website anzeigen | Größe der Seite ändern in Dreamweaver 8 »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine 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 an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:31 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67