Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

(hopefully) simple navigation problem

This is a discussion on "(hopefully) simple navigation problem" within the Web Page Design section. This forum, and the thread "(hopefully) simple navigation problem are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 26th, 2006, 15:30
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
(hopefully) simple navigation problem

this has been puzzling me for a couple of hours now, it's not a major issue but would just be a nice finishing touch.

basically i have some horizontal navigation on this new site, and as it doesnt reach all the way across, i want a solid colour reaching to the edge of the content box (currently you can just see the body background colour showing through.)

the only way i have managed to achieve this so far is by putting a height on the nav container div, but the problem then is if people use different text sizes, fonts etc, it will not line up.

so is there a way of inheriting the size of the background from the navigation? i tried putting a nav bg div inside the nav div, but that didn't work.

i would paste the code but it's quite long, so it's probably easier to just view my code.

here's the page:

http://6spot.com/clients/starwars/index.html

and here's the style sheet:

http://6spot.com/clients/starwars/style.css

any advice appreciated. thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 26th, 2006, 15:35
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: (hopefully) simple navigation problem

The only way you are going to keep the buttons from stacking is to give them a fixed width and handling the overflow accordingly. You have plenty of room there to give each button enough width to make it fit your container. Set the overflow:hidden; and the text will resize 3 times or so before it gets cut off. A nice increment really. So you divide the number of buttons by the width of your container and there is your width. 1 of the buttons may have to be a pixel or two larger or smaller than the rest. Easy enough to do with a

#foo li#first a {}

<li id="first"></li>

or whatever.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 26th, 2006, 15:58
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Re: (hopefully) simple navigation problem

thanks for the suggestion, i may try that later on.

i have sorted it for now, i put the background div around the whole navigation, and put the border at the top of the content instead of at the bottom of the nav.

http://6spot.com/clients/starwars/index.html

please let me know if anyone encounters any problems, cheers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 26th, 2006, 16:06
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: (hopefully) simple navigation problem

Thought what you were trying to do might look odd but, now I see it, it's fine.
All works for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
hopefully, simple, navigation, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Navigation bar problem IN IE6 danny322 Web Page Design 10 Jan 8th, 2008 11:33
Another IE Problem - Navigation Pádraig Web Page Design 8 Jun 23rd, 2007 23:43
navigation menu problem...? JETshipJUMBO JavaScript Forum 2 Jul 29th, 2006 20:18
simple flash for navigation 2 onlinegamesplayer Flash & Multimedia Forum 2 May 23rd, 2006 09:03
simple flash for navigation onlinegamesplayer Flash & Multimedia Forum 16 May 10th, 2006 17:45


All times are GMT. The time now is 19:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8