Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:29

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

Advertisement



[CSS] NAVI ZENTRIEREN PROBLEM

Discussion on [CSS] NAVI ZENTRIEREN PROBLEM within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 357
Received Thanks: 308
[CSS] NAVI ZENTRIEREN PROBLEM

hey leute,
habe ein Problem undzwar der Inhalt meiner Navigation wird immer linksbündig angezeigt also so:



und ich möchte das es so angezeigt wird:



also in der Mitte (zentriert)

hier der Code


PHP Code:
#navi {
    
background:url(img/navi.pngno-repeat top center;
    
height:100px;
    
margin:0 auto;
}

    
#navi ul {
        
width:1000px;
        
margin:0 auto;
    }

    
#navi ul li {
        
list-style:none;
        
display:block;
        
float:left;
        
width:auto;
        
background:url(img/border_nav.pngno-repeat right;
        
height:100px;
        
margin-top:0px;
    }
    
    
#navi ul li:last-child {
        
background:none !important;
    }
    
        
#navi ul li a {
            
line-height:96px;
            
margin:0 29px 0 29px;
            
font-size:14px;
            
color:#833931;
            
text-shadow:0px 0px 5px #000, 1px 1px 1px #000, 0px 0px 10px #000;
            
text-decoration:none;
            
text-transform:uppercase;
        }
        
        
#navi ul li a:hover {
            
color:#FF4C55;
            
text-shadow:0px 0px 5px #000, 1px 1px 1px #000, 0px 0px 10px #000;
        

Cxyz is offline  
Old 12/16/2012, 14:36   #2
 
flickz.'s Avatar
 
elite*gold: 5
Join Date: May 2012
Posts: 589
Received Thanks: 139
Code:
#navi {
    background:url(img/navi.png) no-repeat top center;
    height:100px;
    margin:0 auto;
    text-align:center;
}
Versuchs mal so.
flickz. is offline  
Old 12/16/2012, 14:45   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 357
Received Thanks: 308
Quote:
Originally Posted by flickz. View Post
Code:
#navi {
    background:url(img/navi.png) no-repeat top center;
    height:100px;
    margin:0 auto;
    text-align:center;
}
Versuchs mal so.
hat nicht geklappt
Cxyz is offline  
Old 12/16/2012, 16:28   #4
 
Moritze's Avatar
 
elite*gold: 39
Join Date: Dec 2012
Posts: 222
Received Thanks: 14
gib den
body {
text-align: left;
{
und in jeder div id musst du dan selber schauen wie du den text haben willst.
Moritze is offline  
Old 12/16/2012, 16:56   #5
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
Wieso hat das ul 1000px breite ? Gib navi eine feste breite und dem ul auch (aber nur soviel wie es braucht ) dann text-align:center und margin:0px auto;
NotEnoughForYou is offline  
Old 12/16/2012, 19:23   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 357
Received Thanks: 308
Das Bild ist 1000x100 groß
Cxyz is offline  
Old 12/16/2012, 19:31   #7
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
ja das bild aber nicht deine Liste ...
NotEnoughForYou is offline  
Thanks
1 User
Old 12/16/2012, 19:58   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 357
Received Thanks: 308
danke hat funktioniert
Cxyz is offline  
Reply


Similar Threads Similar Threads
Seite zentrieren?
11/29/2012 - Web Development - 14 Replies
Hallo liebe Elitepvpers-Community, ich habe ein Problem mit meiner Homepage... <body> <div id="header"></div> <div id="nav-bar"> <a class="home" href="index.html"></a> <a class="inst" href="#"></a> <a class="regi" href="regi.html"></a>
Zentrieren
03/12/2012 - Web Development - 3 Replies
.header_main{ background-image: url(img/header_Main.png); background-repeat: no-repeat; background-position: left top; padding-top:100%; margin-bottom:100%; } wie kann ich den Header jetzt zentrieren
Config name zentrieren
03/04/2012 - Counter-Strike - 8 Replies
Kann mir jemand den COnfig befehl sagen damit Namen erscheinen wenn ich auf gegner ziele? (Sollen in der Mitte erscheinen (: )
Problem mit Navi
02/06/2011 - General Art - 2 Replies
Habe ein Problem mit meinem Menü. Bei Vollbild sieht die Menüleiste so aus: http://img59.imageshack.us/img59/7708/menuwp.th.p ng Uploaded with ImageShack.us So sieht es aus wenn ich die Fenstergrösse auf 800x600 mache: http://img717.imageshack.us/img717/319/menu2x.th. png Uploaded with ImageShack.us Was kann ich da tun?
PhP -> zentrieren o.O
08/10/2010 - Main - 3 Replies
Moin, Was ist der befehl bzw. was muss ich schreiben das die zeile oder ein buchstabe Zentriert wird Bitte um hilfe ;) mfg !



All times are GMT +1. The time now is 07:30.


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.