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.
|
|
|
|
|
![]() |
||
(hopefully) simple navigation problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
(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. |
|
|
|
#2
|
|||
|
|||
|
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)
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Tags |
| hopefully, simple, navigation, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Navigation bar problem IN IE6 | danny322 | Web Page Design | 10 | Jan 8th, 2008 10:33 |
| Another IE Problem - Navigation | Pádraig | Web Page Design | 8 | Jun 23rd, 2007 22:43 |
| navigation menu problem...? | JETshipJUMBO | JavaScript Forum | 2 | Jul 29th, 2006 19:18 |
| simple flash for navigation 2 | onlinegamesplayer | Flash & Multimedia Forum | 2 | May 23rd, 2006 08:03 |
| simple flash for navigation | onlinegamesplayer | Flash & Multimedia Forum | 16 | May 10th, 2006 16:45 |