Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 00:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[CSS] Problem mit Padding

Discussion on [CSS] Problem mit Padding within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 22
Received Thanks: 4
[CSS] Problem mit Padding

Hallo!
Traurigerweise scheitere ich gerade bei den Grundlagen von CSS. lol^^

Folgender Quelltext:

Code:
<div id="head">
	<div id="headContainer">
		<div id="headLeft">x</div>
		<div id="headRight">y</div>
	</div>
</div>

#head {
	display: block;
	width: 100%;
	margin: 0px auto;
	padding: 10px 0 10px 0;
	background: #0D0D0D;
	border-bottom: 1px solid #0A0A0A;
}

#headContainer {
	display: block;
	width: 800px;
	margin: 0 auto;
	font-family: Tahoma;
	font-size: 17px;
	color: #FFF;
	background: red;
}

#headLeft {
	width: 250px;
	float: left;
	background: green;
}

#headRight {
	width: 550px;
	float: left;
	background: orange;
}
#headContainer sollte sich in #head befinden und ein padding von 10px haben(top, bottom).
Stattdessen wird #headContainer etwas unterhalb von #head angezeigt. Warum?

Preview:

Wenn ich allerdings #headLeft und #headRight aus #headContainer entferne, funktioniert es
genau so wie ich will, nur das es halt ein einzelner Container ist.

Siehe

MfG
dan1elx3 is offline  
Old 11/15/2013, 06:44   #2


 
Kentika's Avatar
 
elite*gold: 0
The Black Market: 120/0/0
Join Date: Sep 2011
Posts: 5,496
Received Thanks: 1,114
Du musst einen der beiden Containern eine kleinere Breite geben

Ungetestet
Kentika is offline  
Old 11/15/2013, 06:48   #3
 
devcode's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 313
Received Thanks: 61
Oder gibst dem #head ein float: left;
devcode is offline  
Old 11/15/2013, 22:49   #4
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Oder du bereingst float wieder.

HTML
HTML Code:
<div id="head">
	<div id="headContainer">
		<div id="headLeft">x</div>
		<div id="headRight">y</div>
                <div class="clear"></div>
	</div>
</div>
CSS zusätzlich
Code:
.clear {
    clear: both;
}
Mikesch01 is offline  
Reply


Similar Threads Similar Threads
[Buying] Suche Angel Padding acc!
09/30/2013 - S4 League Trading - 1 Replies
Ich suche nen account mit Angel padding set (w) Handgun FP Taser FP (katana) Subs FP Smash FP Semi FP Dagger FP
Stat padding getting Pvp ranks fast
08/02/2012 - Shaiya - 0 Replies
anyone in lialah do Stat padding fir getting Pvp ranks fast and need Company for more darks account make it more faster pm me in Msg
[Guide] BF3 Stats Padding + Leveln
11/27/2011 - Battlefield - 42 Replies
Hallo Vorwort möcht ich sagen das diese Methoden eigentlich verboten sind und man wenn man reportet wird fürs Stats Padding gebannt werden kann. Was ihr als einziges braucht, ist ein Server der mit 1 Spieler startet und wo Friendlyfire on ist und nicht bestraft wird. Ich empfehle euch diesen hier : Happy Team Killing Server Alleine egal welche Klasse:
Stat Padding
08/18/2011 - Shaiya - 1 Replies
Hi,I wonder if there is a hack to pad the stat or the server or I am proposing only 1RES by a rune so it's very long to make the system of HM with a rune res ..
Stat Padding
09/18/2010 - Shaiya - 10 Replies
Hey , I am looking for a good way - fast way to stat pad can anyone give me some ideas thanks :D



All times are GMT +2. The time now is 00:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.