Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

Bitte helft - hab ein <div> Verschachtelungsproblem ?

Ajax, Hijax, Microformats, RDF, Markup, HTML, PHP, CSS, MySQL, htaccess, robots.txt, CGI, Java, Javascript usw.
Neues Thema Antworten
Japs
Nutzer/in
Nutzer/in
Beiträge: 1685
Registriert: 18.10.2004, 10:50

Beitrag von Japs » 18.02.2009, 13:33

Hallo,

irgendwie will es mir nicht gelingen:
Ich möchte quasi unter: https://www.urlaubsregionen.info/europa/spanien die Anzeige im Text positionieren ohne dass mir die Länderauswahl komplett nach unten rutscht oder Text unterhalb der Anzeige eingerückt wird.

Ich habe die Seite bzw. die "<divs> innerhalb der Seite so aufgebaut:

<div id="box_start"> Text 1 </div>

<!-- Beginn Zufallsanzeigen -->
<div id="box_zufall"
Hier jetzt die Anzeige
</div>
<!-- Ende Zufallsanzeigen -->

<div id="box_start2"> Text 2 </div>

<!-- Länderauswahl-->
<div id="navig_laender">
Hier die Länderauswahl (Navigation rechts)
</div>

Mein kompelttes CSS sieht folgendermaßen aus - fals benötigt wird:

Code: Alles auswählen

/* ----------Container zentriert das Layout---------- */
*
&#123;	margin&#58;0;
	padding&#58;0;
&#125;
#container
&#123; 
	position&#58; relative; 
	width&#58; 980px; 
	margin&#58;auto; 
	height&#58; 100%; 
	min-height&#58; 100%; 
	padding&#58; 0; 
&#125;

#head 
&#123; 
	background-image&#58; url&#40;image/head.png&#41;; 
	background-repeat&#58; no-repeat; 
	width&#58; 962px; 
	height&#58; 170px; 
	padding-left&#58; 18px; 
&#125;

.my_clear
&#123; 
	font-size&#58;1px;
	height&#58;1px;
	overflow&#58;hidden;
	clear&#58;both;
&#125;
/* ----------allgemeines Layout---------- */
body 
&#123; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	background-image&#58; url&#40;image/head_bg.png&#41;; 
	background-repeat&#58; repeat-x; 
	background-position&#58; 0 0; 
	height&#58; 100%; 
	min-height&#58; 100%; 
&#125;

#mitte
&#123; 
	background-image&#58; url&#40;image/bg_mitte.png&#41;; 
	background-repeat&#58; repeat-y; 
	width&#58; 980px; 
	height&#58; 100%; 
	z-index&#58; 1; 
	float&#58; left; 
	min-height&#58; 800px; 
&#125;

#mitte_oben 
&#123; 
	background-image&#58; url&#40;image/bg_mitte_oben.png&#41;; 
	background-repeat&#58; repeat-x; 
	width&#58; 980px; 
	height&#58; 270px; 
	float&#58; left; 
	min-height&#58; 270px; 
&#125;


#box
&#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	float&#58; left; 
	width&#58; 750px; 
	margin-top&#58; 35px;
  margin-bottom&#58; 15px; 
  margin-left&#58; 35px; 
 &#125;
#box_start 
&#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	margin-top&#58; 35px; 
	margin-bottom&#58; 15px; 
	margin-left&#58; 35px; 
	width&#58; 590px; 
	float&#58; left; 
&#125;

#box_start2 &#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	margin-top&#58; 35px; 
	margin-bottom&#58; 15px; 
	margin-left&#58; 35px; 
	width&#58; 590px; 
	float&#58; left; 
&#125;

#box_zufall &#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	margin-top&#58; 10px; 
	margin-bottom&#58; 10px; 
	margin-left&#58; 35px; 
	width&#58; 525px; 
	float&#58; left; 
&#125;

#anzeige 
&#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	margin-top&#58; 10px; 
	margin-bottom&#58; 15px; 
	margin-left&#58; 35px; 
	width&#58; 590px; 
	float&#58; left; 
&#125;

#navig_laender &#123; 
	background-image&#58; none; 
	background-position&#58; 0 0; 
	text-align&#58; justify; 
	margin-top&#58; 35px; 
	margin-bottom&#58; 15px; 
	margin-left&#58; 35px; 
	width&#58; 250px; 
	float&#58; left; 
&#125;

#text 
&#123; 
	color&#58; #846d08; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
&#125;

.ue_schrift 
&#123; 
	color&#58; #846d08; 
	font-weight&#58; bold; 
	padding-top&#58; 1px; 
&#125;

a&#58;link, a&#58;active, a&#58;visited	
&#123; 
	color&#58; #846d08; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	text-decoration&#58; none; 
&#125;

a&#58;hover, a&#58;focus 
&#123; 
	color&#58; #cac092; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	text-decoration&#58; underline;
&#125;


/* ----------Footer---------- */

#footer 
&#123; 
	color&#58; #fffff8; 
	background-image&#58; url&#40;image/bg_footer.png&#41;; 
	background-repeat&#58; repeat-y; 
	background-position&#58; 0 0; 
	clear&#58; both; 
	z-index&#58; 0; 
	width&#58; 950px; 
	height&#58; 35px; 
	min-height&#58; 35px; 
	padding-top&#58; 10px; 
	padding-bottom&#58; 15px; 
	padding-left&#58; 30px; 
&#125;



#footer a&#58;link, #footer a&#58;active, #footer a&#58;visited	
&#123; 
	color&#58; #fffff8; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	text-decoration&#58; none; 
&#125;

#footer a&#58;hover, #footer a&#58;focus 
&#123;
	color&#58; #3c3c3c; 
	font-size&#58; 11px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	text-decoration&#58; underline; 
&#125;
/* ---------Formularfelder---------- */
.inputfelder 
&#123; 
	background-color&#58; #fefcf1; 
	padding&#58; 2px; 
	border&#58; solid 1px #cac092; 
&#125;

.red 
&#123; 
	color&#58; #c10c0c; 
	margin&#58; 0.67em 0; 
&#125;
/* ---------Länderauswahl---------- */
.listing
&#123; 
	margin-top&#58; 5px; 
	list-style-position&#58;outside; 
	list-style-type&#58;none; 
&#125;
.listing li
&#123; 
	background-repeat&#58; no-repeat; 
	background-position&#58; 5px 1px; 
	width&#58; 175px; float&#58;left; 
	margin-right&#58;1px; 
	margin-bottom&#58; 1px; 
	padding&#58; 1px; 
&#125;

.listing li.long
&#123; 
	background-repeat&#58; no-repeat; 
	background-position&#58; 5px 1px; 
	width&#58;135px; 
	margin-bottom&#58; 1px; 
&#125;
.listing a,.listing a&#58;link, .listing a&#58;visited,.listing a&#58;active
&#123;	
	color&#58;#5c4d09;
	text-decoration&#58;none;
&#125;
.listing a&#58;hover, a&#58;aktion
&#123; 
	color&#58; #d27a11; 
	text-decoration&#58; underline; 
&#125;

/* ---------Zufallsanzeigen---------- */
.zufall 
&#123; 
	background-image&#58; url&#40;../images/bg_zufall.png&#41;; 
	background-repeat&#58; no-repeat; 
	width&#58; 496px; 
	height&#58; 150px; 
	z-index&#58; 1; 
	padding-top&#58; 5px; 
	padding-right&#58; 10px; 
	padding-left&#58; 10px; 
&#125;
.bg_random 
&#123;  
	background-repeat&#58; no-repeat; 
	width&#58; 450px; 
	height&#58; 120px; &#125;
.text_random 
&#123; 
	background-repeat&#58; no-repeat; 
	padding-top&#58; 12px; 
	padding-right&#58; 10px; 
&#125;
.gif_random 
&#123; 
	background-repeat&#58; no-repeat;
	float&#58; left;
	padding-left&#58; 11px;
	padding-top&#58; 17px;
	width&#58; 127px;

&#125;
.zufall_grau_unten 
&#123; 
	color&#58; #a7a7a7; 
	font-size&#58; 9px; 
	font-family&#58; Verdana, Arial, Helvetica, sans-serif; 
	width&#58; 450px; 
	z-index&#58; 2; 
	float&#58; left; 
	margin-top&#58; 20px;
&#125;
Wo habe ich jetzt einen Denkfehler dass es auf der Seite nicht optimal wie gewünscht aussieht ?
Danke & Gruß Dirk.