Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 15:50

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

Advertisement



2 Column Layout

Discussion on 2 Column Layout within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
2 Column Layout

Servus, hab nen "kleines" Problem.

Und zwar es geht darum das ich 2 Divs nebeinander platziert hab (float). Nun möchte ich aber das der rechte Div den restlichen Platz einnimmt.
Das wäre ja bist jetzt noch kein Problem, wenn denn der linke Div eine vordefinierte Weite hätte, die hat er leider nicht da dort die Menü-Einträge reinkommen und somit ist die Weite vom Div dynamisch. Ansonsten könnte man ja mit Margin arbeiten.

Das ganze sollte mit CSS2 gelöst sein (JS wäre in dem Fall ja wie Cheaten ).

Hat ja jemand ne Idee? Steh grad ziemlich am Schlauch. :\
boxxiebabee is offline  
Old 06/24/2012, 14:03   #2
 
elite*gold: 0
Join Date: Apr 2012
Posts: 359
Received Thanks: 103
Kannst du uns nicht ein paar Schnipsel zeigen...?
Außerdem verstehe ich nicht genau, was du willst...

Also es soll so aussehen...

Und wo hast du das Problem, bzw. was passiert?
FancyArts is offline  
Old 06/24/2012, 16:08   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 15
Received Thanks: 2
Dass der Text recht eben die ganzen 100 % ausfüllen soll, und da nicht immer eine Lücke sein soll
Das ist das Problem
DeepBlocky is offline  
Old 06/24/2012, 22:17   #4
 
elite*gold: 0
Join Date: Apr 2012
Posts: 359
Received Thanks: 103
Mach es doch als "container"...
Also so :

PHP Code:
.content .container {
    
widthxxpx;
    
heightxxpx;
    
floatleft;
    
margin-topxxpx;
    
margin-leftxxpx;

Und genau du hast gemeint, dass ich kein CSS oder ähnliches kann... aber na ja, ist ja nun auch egal.
FancyArts is offline  
Old 06/24/2012, 22:18   #5
 
PseudoPsycho's Avatar
 
elite*gold: 1715
Join Date: Dec 2011
Posts: 672
Received Thanks: 207
Wow, das ist wirklich schwer...
Das gelingt nichtmal mir auf die Art

Ich würde höchstens die Aufgabenstellung verändern und letztlich sowas draus machen:
HTML Code:
<!Doctype html>
<html lang="de">
	<head><title>Test</title></head>
	<body>
		<div style="width:100%; background:rgb(260, 0, 0); display:table;">
			<div style="display:table-row; width:100%;">
				<div style="background:rgb(0, 260, 0); display:table-cell;">bla</div>
				<div style="background:rgb(0, 0, 260); display:table-cell;">xyz</div>
				<div style="clear:both;"></div>
			</div>
		</div>
	</body>
</html>
Quote:
Originally Posted by FancyArts View Post
PHP Code:
.content .container {
    
widthxxpx;
    
heightxxpx;
    
floatleft;
    
margin-topxxpx;
    
margin-leftxxpx;

Ähm, wieso schreibst du nur "xx", wenn genau danach gefragt ist?? :O
PseudoPsycho is offline  
Old 06/25/2012, 00:15   #6

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
@Pseudo

Hey, so weit war ich auch schon mit display: table-cell etc. nur da kann ma ndann kein margin etc. verwenden, sondern nur border-spacing was nicht so toll ist.

Also hier nochmal nen Beispielbild was ich erreichen möchte:


Hoffe ihr versteht es, und es gibt ne Lösung dafür (ohne JS). Hab zwar schon recht lange gegoogelt aber leider nix gefunden.
boxxiebabee is offline  
Old 06/25/2012, 15:03   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 359
Received Thanks: 103
Mhh... soll der Text den Container voll ausfüllen, oder der Conateiner die restlichen 100% der Seite einnehmen?

Doch sowas?

PHP Code:
.content {
    
width800px;
    
height330px;
    
paddingxxpx xxpx xxpx xxpx; (z.B. : 20402040)
}

.
content .container {
    
width800px;
    
height350px;
}

.
content .container #home {
    
floatleft;
    
margin-topxxpx;
    
margin-leftxxpx;

FancyArts is offline  
Reply


Similar Threads Similar Threads
[Youtube Layout] Mache YT Layout 50eGold
01/28/2012 - Social Media Trading - 2 Replies
Mache Youtube Design und mehr alles 50egold ! Ich hoffe ihr meldet euch ! Skype: fabiiscool1 http://i.imgur.com/0xV5x.jpg
mob_proto add new column
08/22/2010 - Metin2 Private Server - 1 Replies
Hi, can somebody tell me how to add 2 new columns in mob_proto? I need make skill_vnum2 and skill_level2. I want make mob with 3 skills but in mob_proto are only 2 slots for skills(skill_vnum0, skill_vnum1, skill_level0 and skill_level1). When I add it manuly, it don't work. Mobs don't make skills. I think I must also add it in other file, but I don't know what file.
cq_grade descricion column
07/15/2010 - EO PServer Hosting - 7 Replies
S All pets are born with tails. Most everything on top ini. He wanted to know how to change it and what value I put in cq_grade Another doubt is wanted someone to tell me a description of each column: life_a life_b life_c life_grow_a
cq_eudemon_rbn_rqr column question
07/13/2010 - EO PServer Hosting - 4 Replies
hello..can someone tell me what mean in cq_eudemon_rbn_rqr ?? like i know(i guess) min = eudemon minimum compose mark ? max = eudemon maximum compose mark ? rand_type = unknown ? suc_percent = succesfully percent? sacrifice_lev = level required ? sacrifice_fidelity = loyalty required ? sacrifice_starlev = starmark required ?
Column means
11/28/2009 - EO PServer Hosting - 0 Replies
hi all;) this is the cq_itemtype column means release by necron33..i need more info about column mean in cq_action,cq_eudemon_rbn_rqr,cq_eudemon_rbn_type and cq_grade..i hope for someone can release it..i want to learn not just copied people work that im dont know how the fuctions is..!! help me..im just want to learn and need column info means..thx Columns Means ID=ItemID(Random) name=ItemName req_profession=Class Required to use the item level=Item Level req_level=Level required to...



All times are GMT +1. The time now is 15:51.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.