Register for your free account! | Forgot your password?

You last visited: Today at 15:53

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

Advertisement



footer

Discussion on footer within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
footer

hey, ich hab wieder einmal ein problem, ich habe einen footer

<center><div class="footer" style="z-index:-1; bottom:0px;">
content.....content
</div></center>


und der css teil :

.footer {

position:relative;
background-color: #202020;
text-align:center;
font-family:"Times New Roman", Times, serif;
height:autos;
color:#9F9F9F;
bottom: 0px;
height:auto;
align: center;
-moz-border-radius:10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
border-radius:10px 10px 0 0;
box-shadow:5px 5px 5px rgba(0,0,0,0.5);
display: table-cell;
width:500px;
}


ich hab jetzt das proble, das der footer immer einen gewissen abstand zum unteren bildschirmrand hat, wenn man nicht scrollen muss. ich hab deshalb noch den css teil eingebunden :

body {

height: 100%;

}

html {

height: 100%;

}


allerdings passiert immer noch nichts, der div soll auf "relative" bleiben, und die breite soll ich ebenfalls nicht verändern, wenn ich ihn nämlich auf positive setze ist er nicht mehr zentriert, und er funktioniert nicht mehr wie er soll, im endeffekt soll er einfach nur ganz unten am bildschirm kleben und genau das tut er nicht
Synturas is offline  
Old 07/02/2012, 20:27   #2
 
Project Rivalry's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,674
Received Thanks: 229
PHP Code:
<center><div class="footer" >
content.....content
</div></center>
body {
padding:0;
margin :0;
}

.
footer {
z-index:-1;
position:relative;
background-color#202020;
text-align:center;
font-family:"Times New Roman"Timesserif;
height:auto;
color:#9F9F9F;
margin-bottom0px;

vertical-aligncenter;
-
moz-border-radius:10px 10px 0 0;
-
moz-border-radius:10px 10px 0 0;
border-radius:10px 10px 0 0;
box-shadow:5px 5px 5px rgba(0,0,0,0.5);
displaytable-cell;
width:500px;

und pack den ganzen css gram in ne css net in die tags...
Project Rivalry is offline  
Old 07/02/2012, 20:31   #3
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
funktioniert nicht, bitte nur codes angeben die auch getestet wurden.
Synturas is offline  
Old 07/02/2012, 20:32   #4
 
Project Rivalry's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,674
Received Thanks: 229
habs nomal überarbeitet aber habs au net getestet... du hast css tags genutzt die es entweder nicht gibt oder ich nicht kenne^^
Project Rivalry is offline  
Old 07/02/2012, 20:39   #5
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
funktioniert nicht ://
Synturas is offline  
Old 07/02/2012, 20:43   #6
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Wow, du baust ja viel Käse rein

1. Center ist schon lange als deprecated angesehen, also nicht mehr XHTML konform.
2. baust du auch manchmal doppelte Eigenschaften ein! z.b height: auto; und height: autos; (wobei Autos du eher auf der Straße benutzen solltest)

HTML Code:
<div class="footer" style="z-index:-1; bottom:0px;">
content.....content
</div>
Code:
body {
position: relative;
//text-align: center; /* wird verwendet für IE zum zentrieren! - jedoch müssen alle anderen Inhalte mit text-align: left wieder korrekt ausgerichtet werden, daher lasse ich das mal nun weg */
}

.footer {
position:fixed;
bottom: 0;
left: 0; //immer schön zwei Angaben zur Position angeben, nicht nur bottom!
margin: 0px auto;
background-color: #202020;
text-align: center;
font-family:"Times New Roman", Times, serif;
height: 50px; //eine Höhe ist Pflicht!
color:#9F9F9F;
-moz-border-radius:10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
border-radius:10px 10px 0 0;
box-shadow:5px 5px 5px rgba(0,0,0,0.5);
display: table-cell; //???? wozu das in deinem script dient weiss ich nicht, aber klingt nicht sinnvoll in einem footer! ich würde da den display weglassen!
width:500px;
}
Mikesch01 is offline  
Old 07/02/2012, 21:19   #7
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
ich will einen footer mit position:relative keinen body mit relative und auch dann logischerweiße auch keinen footer mit fixed
Synturas is offline  
Old 07/02/2012, 21:24   #8
 
The Steven's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 415
Received Thanks: 67
Grüß Dich,

du kannst eine Lösung auf folgender Seite finden:



Sollte dein kleines / einfaches Problem lösen.

Nächstes mal am besten gleich danach suchen


Gruß
The Steven is offline  
Old 07/02/2012, 21:38   #9
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
hab diese lösung vorher auch schon gefunden, angewendet ein bisschen angepasst funktioniert reibungslos, AAAAber der footer teil (alle 2 dis) wird sobald der teil der seite wieder so lang wird das man scrollen muss komplett verschluckt
Synturas is offline  
Old 07/02/2012, 22:05   #10
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Quote:
Originally Posted by Synturas View Post
ich will einen footer mit position:relative keinen body mit relative und auch dann logischerweiße auch keinen footer mit fixed
Weisst du eig. wofür position relative ist?! Nach deiner Meinung willst du es ja immer unten haben...!
Mikesch01 is offline  
Old 07/02/2012, 22:57   #11
 
Synturas's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 72
Received Thanks: 13
ja weiß ich und ja das ist absichtlich // ist gelöst, durch automatische höhenanpassung geht alles.
Synturas is offline  
Reply




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


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.