Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 02:31

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

Advertisement



css problem mit min-height

Discussion on css problem mit min-height within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
mastermo's Avatar
 
elite*gold: 177
Join Date: Jan 2010
Posts: 5,963
Received Thanks: 1,130
css problem mit min-height

Hallöchen Leute,

ich hab nen Problem mit min-height und steige einfach nicht durch wo die Fehlerursache steckt :/

Der Container soll sich eigentlich automatisch verlängern, aber so wie´s grade ist geht der Content ungehindert über den Container hinaus und überlappt den Containerboden und Footer :/

Kann mir wer von euch sagen woran das liegen könnte?

Die Seite worum es geht ist

Mein CSS Code:

Code:
::selection {background: #0B75AF; color: #fff;}
::-moz-selection {background: #0B75AF; color: #fff;}

/* VORRÜBERGEHEND! WIRD DURCH CLASS ERSETZT!!! */
a.menu:link    { color:#00f; background-color:transparent; text-decoration: none; }
a.menu:visited { color:#00f; background-color:transparent; text-decoration: none; }
a.menu:hover   { color:#ff0; background-color:#00f; text-decoration: none; }
a.menu:active  { color:#ff0; background-color:#a03; text-decoration: none; }
/* VORRÜBERGEHEND! */

body {background:url( ../img/background/background.jpg) center no-repeat #111; font-size: 14px; font-family: Arial; color: #fff;}

/* HEAD NAVIGATION START */
#headnavi {margin: auto; height: 30px; border-bottom: 1px solid #0B75AF; background: rgba(11,11,11, 0.7); font-size: 12px; color: #fff;}
.headnavi {margin: auto; width: 1000px;}
.headnavi_left {float: left; line-height: 30px;}
.headnavi_country {margin-right: 2px;}
.headnavi_right {float: right; line-height: 30px;}
.headnavi_service {padding-left: 5px; padding-right: 5px;}
/* HEAD NAVIGATION END */

/* TITLE START */
#title {margin: auto; width: 1000px; height: 150px; background:url( ../img/title.png);}
/* TITLE END */

/* CONTAINER START */
#container {margin: auto; width: 1000px; min-height: 750px; border: 1px solid #777; border-radius: 5px; background: rgba(11,11,11, 0.7);}
/* CONTAINER END */



 




/* NAVIGATION START */
.navigation
{float: left; margin-top: 25px; width: 200px; border-right: 1px solid #777;}

nav { width:200px; float:left; margin:25px; }
nav ul li { width:180px; height:20px; line-height:20px; vertical-align:central; padding:10px; font-family:Arial; font-size:14px; color:#fff; /*background: rgba(55,55,55, 1.0);*/ list-style:none; cursor:pointer; }
nav .subnav li { width:180px; height:20px; line-height:20px; vertical-align:central; padding:10px; /*background: rgba(55,55,55, 1.0);*/ cursor:pointer; }
nav .subnav li a { font-family:Arial; font-size:12px; color:#0B75AF; text-decoration:none; }
nav .subnav li:hover > a { font-weight:bold; }
/* NAVIGATION END */

/* SOCIALMEDIA START */
.socialmedia
{margin-top: 20px; float: left; width:180px; min-height: 100px; height:20px; line-height:20px; vertical-align:central; padding:10px; font-family:Arial; font-size:14px; color:#fff; /*background: rgba(55,55,55, 1.0);*/ list-style:none;}

/* SOCIALMEDIA END */

/* CONTENTS START */
.content
{float: right; width: 739px; min-height: 750px; margin: 12px 12px 25px 0px; padding: 15px;}
.contents { padding: 20px; padding-bottom: 45px; margin-bottom: 15px; /*background: rgba(55,55,55, 1.0);*/}
/* CONTENTS END */

/* FOOTER START */
#footer {height: 150px;}
/* FOOTER END */

Ich weiß es ist ein wenig unübersichtlich aber das wird im nachhinein noch überarbeitet Mir gehts in erster Linie darum erstmal das Problem zu lösen



Gruß und schonmal im Voraus ein kräftiges Danke für eure Hilfe
mastermo is offline  
Old 09/29/2013, 21:47   #2
 
devcode's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 313
Received Thanks: 61
Gib deiner #container div keine style angaben. Mach dir eine neue div wo du nochmals die nav und den content zusammenfast und gibst ihm den style und floatest diese.
devcode is offline  
Thanks
1 User
Old 09/29/2013, 22:22   #3
 
mastermo's Avatar
 
elite*gold: 177
Join Date: Jan 2010
Posts: 5,963
Received Thanks: 1,130
Hmm irgendwie raff ichs glaube noch nicht ganz wie du das meinst. Im Container-Div sind ja nur die Maße, Hintergrundfarbe, Border und Margin auto fürs centern drin

Könntest du mir das wohl kurz aufschreiben, wie du das meinst? Also Meine style.css mit deinen Änderungen als [ Code ] ? Ich wäre dir sehr dankbar, wenn du das machen würdest

Habs grad alles verschachtelt.

Div Container start
Div Navi
Div Content
Div Container end

Gruß Mo & eine gute Nacht
mastermo is offline  
Old 09/29/2013, 22:49   #4
 
devcode's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 313
Received Thanks: 61
Dein #container ist im moment ja der style von dem hintergrund, sprich border und background. Gib diesem nur ein margin: auto und eben die width. In dem #container machst du noch eine div die content und navi umfasst, und diesem gibst du den style.

HTML Code:
<div id="container">
  <div class="wrap-content">
    <div class="navigation"></div>
    <div class="content"></div>
  </div><!-- wrap-content -->
</div><!-- container -->
In diesem beispiel gibst du dem .wrap-container ein float: left, und eben den background und border etc.
devcode is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Height Map Bug
09/09/2012 - Metin2 Private Server - 5 Replies
Hi guys !!! I have a problem with my height map look : http://img.funky-emu.net/uploads/2107040501-13265 4.jpg http://img.funky-emu.net/uploads/2107040501-13271 5.jpg When I join 2 square of my map I have this... How can I do?
Problem with Height
09/09/2012 - Metin2 Private Server - 3 Replies
Hello, I created map and I have a big problem in Game.... All Height are not aligned.... size height --> 131 / 131 What is the solution?
[Release] Get Height
03/07/2011 - Kal Hacks, Bots, Cheats & Exploits - 19 Replies
So many releases lately. I thought it was time to make a contribution as well. A couple of years ago, Bakabug released KalHack11. I don't think he likes to be reminded on the way he wrote code back then, but even so... his code has been the base of many sources till today. Basically his method to get the height in KalHack11 was: DWORD OrigHeight = SearchPattern("55 8B EC 81 EC 94 00 00 00 D9 45 08 D8 35 ? ? ? ? D9 5D 08",0x00400000,0x007FFFFF); DWORD MyHeightBack = OrigHeight...
Height
08/21/2010 - Metin2 Private Server - 3 Replies
huhu, ich hab wieder mal ein Problem ich bin Photoshop anfänger, vll weiß ich es deswegen nicht aber wenn ich in der height datei den farbton um 1% änder is das ja schon ein großer unterschied... kann ich iwi auch weniger als einen % verändern?
Jump to any height, anywhere
03/19/2006 - WoW Exploits, Hacks, Tools & Macros - 40 Replies
/script Logout(); /script CancelLogout(); /script Jump(); Macro it, spam it, use it with caution.



All times are GMT +1. The time now is 02:32.


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