[SOLVED] Apple.com : How to do similar navigation?

This is a discussion on "[SOLVED] Apple.com : How to do similar navigation?" within the Web Page Design section. This forum, and the thread "[SOLVED] Apple.com : How to do similar navigation? 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 Oct 27th, 2007, 17:29
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
[SOLVED] Apple.com : How to do similar navigation?

Hi Guys, have had a look at the source and CSS and could not figure out how I could make myself a navigation bar similar to that of http://www.apple.com

This could be the wrong forum, but could someone show me how?

Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
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 Oct 27th, 2007, 17:41
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Apple.com : How to do similar navigation?

Its probubly because they are using images with a CSS rollover instead of Javascript... Ill try and find you a tutorial.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM 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
  #3  
Old Oct 27th, 2007, 17:42
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Apple.com : How to do similar navigation?

I remember Karinne had a good tutorial but i cant fins it .... I have found one but it isnt as good. http://www.tutorio.com/tutorial/pure...mage-rollovers.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM 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
  #4  
Old Oct 27th, 2007, 17:49
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

I'm sure this will do me...thanks!

If I have any problems I'll be back.

Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 27th, 2007, 17:49
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Apple.com : How to do similar navigation?

Like the termanator *Ill be back* Arnold Schwaz.......
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM 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
  #6  
Old Oct 27th, 2007, 20:11
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Apple.com : How to do similar navigation?

This is the tutorial

Fast Rollovers Without Preload
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 27th, 2007, 23:00
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

Thanks Guys!

A slight Problem tho.. I created this image:

I think it's rather nice, don't you?

Very Applish..lol

Anyway, I used the CSS from the first tutorial (and edited so it should work):
HTML: Select all
.rollover a {
display:block;
width: 181px;
padding:0px 0px 0px 0px;
font: bold 13px sans-serif;;
color:#;
background: url("http://simplifiedimpact.com/images57/rollover.png") 25 25 no-repeat;
text-decoration: none;
}
.rollover a:hover { 
background-position: 0 36px;
color: ;
}
.rollover a:active {
background-position: 0 72px;
color: ;
}
and then placed this in my document:
HTML: Select all
<div class="rollover">

<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
<a href="#">Item 6</a>
</div>
and I get: http://simplifiedimpact.com/index.html

Why isn't it working?

Ed

(PS: please don't complain about my html, I will be cleaning it up...unless it affects the rollovers)
Last Blog Entry: Happy New Year! (Dec 31st, 2007)

Last edited by Ed; Oct 27th, 2007 at 23:05.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 27th, 2007, 23:16
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Apple.com : How to do similar navigation?

You don't do it with images or do you
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 27th, 2007, 23:30
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

Yes You do! Have a look at the Apple one:

Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 28th, 2007, 01:53
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Apple.com : How to do similar navigation?

Quote:
Originally Posted by Vivara View Post
Why isn't it working?
The reason is that you are using quotes in the css. Use the image like this:
HTML: Select all
background: url(http://simplifiedimpact.com/images57/rollover.png) 25 25 no-repeat;
That should work...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 28th, 2007, 01:45
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Apple.com : How to do similar navigation?

I would rather have 1 image with all 3 states for each menu item as oppose to 1 images for the whole menu.... much less complicated. IMHO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 28th, 2007, 07:35
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Apple.com : How to do similar navigation?

Daniel, yes you do it with images!!

I agree with Karinne - 1 image with 3 states. This will help you in the long run if you want to add another button and it is alot less complicated.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM 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
  #13  
Old Oct 28th, 2007, 09:45
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

I've changed it to that:

Here's my CSS:
Note: I am using the rollover class and not the menu one.

http://simplifiedimpact.com/images57/style.css

Just view it, as I'll have to be editing code here and there.

P.S: It's not at the slightest bit long!

P.S.S: Yeah, I know it's much more complicated with one whole image, but that's the only way I could get Myriad Pro, Semibold text with inset!


Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Oct 28th, 2007, 09:53
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Apple.com : How to do similar navigation?

What do you want us to do? Look at it?

Have you got an example of what you have done so far?
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM 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
  #15  
Old Oct 28th, 2007, 10:09
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

No..sorry!

I have come up with my own thing here, it should be working, but it isn't!

My html:

HTML: Select all
<div id="main-nav">
    <ul>
        <li><a href="#" class="logo"><span>logo</span></a></li>
        <li><a href="#" class="home"><span>home</span></a></li>
        <li><a href="#" class="about"><span>about</span></a></li>
        <li><a href="#" class="ourprojects"><span>Our Projects</span></a></li>
    </ul>
</div>
My CSS:

HTML: Select all
#main-nav{
    
    width:905px;
    height:36px;
    margin:0 auto;
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) no-repeat;   


#main-nav ul{
    border: 0;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
    clear: left;
}

#main-nav ul li{
    display: block;
    float: left;
    text-align: center;
    padding: 0;
    margin: 0;
}

#main-nav ul li a span{
    display:none;
}


#main-nav ul li a{
    width:100px;
    height:50px;
    margin:0px;
    padding:0px;
    display: block;
        
}

/* -- Hovers -- */


#main-nav ul li a.logo:hover{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) 0px 0px;
}

#main-nav ul li a.home:hover{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) -72px -362px;
}

#main-nav ul li a.about:hover{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) -72px -543px;
}
#main-nav ul li a.ourprojects:hover{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) -200px -724px;
}            

/* -- Actives -- */

#main-nav ul li a.logo:active{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) 0px -50px;
}

#main-nav ul li a.home:active{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) 0px -50px;
}

#main-nav ul li a.about:active{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) -100px -50px;
}
#main-nav ul li a.ourprojects:active{
    background-image: url(http://simplifiedimpact.com/images57/rollover.png) -200px -50px;
}    




My image:


My page:
http://simplifiedimpact.com/testmenu.html


Does anyone know why the image: (above) isn't displaying?

Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)

Last edited by Ed; Oct 28th, 2007 at 11:00.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Oct 28th, 2007, 10:30
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Apple.com : How to do similar navigation?

HTML: Select all
#main-nav{
    width:400px;
    height:50px;
    margin:0 auto;
    background:#acacac url(http://simplifiedimpact.com/images57/rollover.png) no-repeat;                 
}
shouldn't it be

HTML: Select all
background-image: url(http://simplifiedimpact.com/images57/rollover.png) no-repeat;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Oct 28th, 2007, 11:00
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Apple.com : How to do similar navigation?

I have changed it, but to no avail!
Redirected index.html to a sorry page so use this when you want to view:

http://simplifiedimpact.com/testmenu.html


Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!