Creating a nav bar like this

This is a discussion on "Creating a nav bar like this" within the Web Page Design section. This forum, and the thread "Creating a nav bar like this are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 14th, 2006, 15:56
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Creating a nav bar like this

Hi

I would like to know the best way of re-creating a navbar I have designed. http://www.clientpreview.co.uk/necr/preview/nav.jpg. It would have hover states and depending what page you are the active graphic would be the blue tab.

I have tried following http://superfluousbanter.org/archiv...atrix-reloaded/

But cannot for the life of me get it even near to his example.

Any help would be much appreciated!

Thanks
Reply With Quote

  #2 (permalink)  
Old Aug 14th, 2006, 16:23
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Creating a nav bar like this

That is fairly simple. What you need to do is take the tab image and make it two sep images. One for the LI the other for the LI A.

Check this article for more details and step by step instructions.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #3 (permalink)  
Old Aug 14th, 2006, 19:40
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,649
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Creating a nav bar like this

Well, you've pointed out the answer to your own question:
http://www.nundroo.com/nav_matrix/welcome2.html
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #4 (permalink)  
Old Aug 14th, 2006, 19:42
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

I have tried implementing that example, but just no luck really dont know where I am going wrong.....aahhhhh!......help
Reply With Quote
  #5 (permalink)  
Old Aug 14th, 2006, 19:46
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,649
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Creating a nav bar like this

Post url...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #6 (permalink)  
Old Aug 15th, 2006, 05:23
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

I kind of understand your problem with the example. The CSS methods they used are horrible. As I've never made a CSS tabbed menu like that, and I'll probably use something similar in a website I create in the future, here is the same type of menu, only with common sense involved.

The this CSS basically acheives the same thing, only it's less than a third of the size of the example you gave.

http://ryanfait.com/menu/

I haven't tested in IE... I'm on vacation so I don't have access to my computer. However, unless I forgot something, I don't see any reason why this shouldn't look the same (other than it not being centered on the page). Let me know if there's a problem and I'll do my best to fix it though.

Last edited by Ryan Fait; Aug 15th, 2006 at 08:22.
Reply With Quote
  #7 (permalink)  
Old Aug 15th, 2006, 08:34
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

WOW, your a genious, your right the example I gave is very hard to follow, your version uses far less code, I will try and implement it to my page.

Will let you know how I get on!
Reply With Quote
  #8 (permalink)  
Old Aug 15th, 2006, 11:45
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

Oh, I see why the example you provided had such a strange way of doing it. I just read the description. It's used to counter some IE bug I'm not aware of. Strange, I'll have to look into that when I get my hands on Windows again. That's definitely not a good example to start with as it uses some rather round-about techniques to acheive the same affect as mine. It's more for people who have a fuller understanding of CSS.
Reply With Quote
  #9 (permalink)  
Old Aug 15th, 2006, 11:57
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

Upon further investigation of the link, I'm at a loss to discover why he's used just one massive image for the navigation. Can anyone explain to me why? It seems so inconceivably pointless for such an insignificant increase in speed of switching the backgrounds. It's not explained properly anywhere on his site or on linked ones.

My only guess is that two years ago there was a major advantage to this technique.

Last edited by Ryan Fait; Aug 15th, 2006 at 12:00.
Reply With Quote
  #10 (permalink)  
Old Aug 15th, 2006, 12:28
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

I have your example nearly working, so much easier, let you know how i get on.
Reply With Quote
  #11 (permalink)  
Old Aug 15th, 2006, 13:22
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

Hi ryanfait

I have a slight problem, i cant seem to locate when I click to go onto another page and change the active class to the tab I get this http://www.clientpreview.co.uk/necr/preview/test.htm , is it something to do with the z-index?

Thanks for your help!
Reply With Quote
  #12 (permalink)  
Old Aug 15th, 2006, 13:29
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Re: Creating a nav bar like this

ryanfait... .I believe the first example is done that way to avoid screen flicker, and to cache all images in one hit (coz it's just one image afterall)

I've seen this technique used to great success on a few sites although, I must admit it can be a pain to get going.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #13 (permalink)  
Old Aug 15th, 2006, 13:39
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Creating a nav bar like this

I use one image for up to 3 button states and yes load a single file, get 3 button effects on all your nav links, eliminates IE's suck flicker of loaded images on rollover. Makes sense to me. Listen to the moojoo and the alien cow thief rob.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #14 (permalink)  
Old Aug 15th, 2006, 13:44
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Re: Creating a nav bar like this

not wishing to go offtopic, but alien cow thief? ugh? lol
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #15 (permalink)  
Old Aug 15th, 2006, 21:52
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

I sort of understand the concept, but not entirely. If you'll look at my tab CSS, you'll see that I used one image for both the inactive and hover states of the tabs. Is using just one large image for all the links better than repeating one image 4 times? I've never seen the flickering problem before, is it only caused when you try to use two separate images for the inactive and hover states?
Reply With Quote
  #16 (permalink)  
Old Aug 15th, 2006, 23:11
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Re: Creating a nav bar like this

you way is fine ryan...
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #17 (permalink)  
Old Aug 16th, 2006, 12:54
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Creating a nav bar like this

Ryan, your way is fine but it would be more efficient to have one style for all the main level nav links utilizing a single image file vs 4 different ones. If that makes sense.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #18 (permalink)  
Old Aug 16th, 2006, 21:17
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

I am only using two images. One for the regular tab and one for the selected tab. I could combine those two, but as they never visibly collide, it would make litte difference. A GIF's file size grows unproportionaly to it's dimensions, so I'd just end up with a more bytes to load anyway.

Perhaps I don't understand what you're saying.
Reply With Quote
  #19 (permalink)  
Old Aug 17th, 2006, 12:42
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Creating a nav bar like this

The point is using two images you may get the "IE Flicker" on intitial hovers while IE caches the image files. Its nothing really major, just annoying. Its not necessarily about file size, although loading one image is usually better than loading two, and the single image with both states can be recycled for all the links. Its just an efficiency thing.
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 17th, 2006 at 12:55.
Reply With Quote
  #20 (permalink)  
Old Aug 17th, 2006, 13:22
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Creating a nav bar like this

Haha, we're almost going in circles. That's what I did. One image was for the selected tab (both the normal and the hover state) and the tab for the other pages (also both the normal and hover state). Here:

http://ryanfait.com/menu/tab_inactive.gif
http://ryanfait.com/menu/tab_active.gif

This terminology used why trying to describe what I've done is rather frustrating to write. I was meaning that I could combine those two in one image so there would be four states in one.
Reply With Quote
Reply

Tags
creating, nav, bar

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
re-creating this WDH Web Page Design 4 Feb 14th, 2008 07:46
Creating a CMS and Blog... marSoul Website Planning 12 Jan 3rd, 2008 00:56
creating pdf bahy PHP Forum 7 Aug 18th, 2007 00:37
Creating a sum with ASP Andrew1986 Classic ASP 4 Aug 1st, 2007 10:09
how would i go about creating this ? protein82 Graphics and 3D 4 May 9th, 2006 15:05


All times are GMT. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43