NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page navigation centered!!!?!?!?!?!?!?!?!?

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 03-11-2009, 01:48 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Nov 2008
Posts: 15
therise03 is an unknown quantity at this point
 



Help! navigation centered!!!?!?!?!?!?!?!?!?


Ok so i have a div holding a navigation on my page. Its a fluid layout and the container is 90% wide. But sometimes when you resize the page, the navigation floats with it, and gets aligned to the lef,t which makes it look like its in the wrong position. I want to solve this problem by centering the navigation so it looks more in place. All i want to say is this forum rocks because of the quick and accurate responses, so thanks in advance and I hope you can help me out! Why arent multi level navigations easy?! here is my code:




<div class="suckertreemenu">
<ul id="treemenu1">
<li><a href="index.html">Home</a></li>
<li><a href="2008team.html">Team</a>
<ul>
<li><a href="2008team.html">2008</a></li>
<li><a href="2009team.html">2009</a></li>
</ul>
</li>
<li><a href="rules.html">Rules</a></li>
<li><a href="supporters.html">Supporters</a></li>
<li><a href="contact.html">Contact</a> </li>
</ul>
<br style="clear: left;" />
</div>
<!-- navigation-->





and here is the css:




.suckertreemenu ul {
list-style-type: none;
}

.suckertreemenu ul li {
display: inline;
position: relative;
????: NamePros.com http://www.namepros.com/web-design-discussion/566311-navigation-centered.html
border-bottom: 1px solid #cccccc;
float: left;
}

.suckertreemenu ul li a {
display: block;
width: 90px;
padding: 1px 10px;
text-decoration: none;
color: #000000;
}



.suckertreemenu ul li a:visited {
display: block;
width: 90px;
padding: 1px 10px;
text-decoration: none;
color: #000000;
}




.suckertreemenu ul li ul {
left: 0;
position: absolute;
top: 1em;
display: block;
visibility: hidden;
}

.suckertreemenu ul li ul li {
display: list-item;
float: none;
}

.suckertreemenu ul li ul li ul {
left: 159px;
top: 0;
}

.suckertreemenu ul li ul li a {
display: block;
width: 100px;
color: #000000;
text-decoration: none;
padding: 1px 10px;
}

.suckertreemenu ul li a:hover {
background-color: #ff2b06;
color: white;
}

* html .suckertreemenu ul li {
float: left;
height: 1%;
}

* html .suckertreemenu ul li a {
height: 1%;
}
therise03 is offline   Reply With Quote
Old 03-11-2009, 02:12 PM   #2 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute
 



how about:

Code:
.suckertreemenu {
text-align: center;
}
__________________
- shockie
shockie is offline   Reply With Quote
Old 03-12-2009, 07:15 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Nov 2008
Posts: 15
therise03 is an unknown quantity at this point
 



:(


sorry but that only puts the text within the buttons toward the middle...i need the whole div to go into the middle, so the buttons center themselves within the layout, rather than the text within the buttons being centered.
therise03 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:54 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger