my CSS Nav

This is a discussion on "my CSS Nav" within the Web Page Design section. This forum, and the thread "my CSS Nav 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 May 31st, 2008, 18:26
New Member
Join Date: Feb 2008
Location: Warwickshire
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
my CSS Nav

HI all

I am in need of help.

I am re designing my site, and I want my nav bar to have a standard colour change on hover etc and colour change on current.

Anyway, the trouble I have is that I am using a reflection of my nav bar underneath and I want the hover and current to appear there to really look realistic.

You can see what I have atm, http://www.trwb.co.uk/newtest.html

you can see the reflection, but you dont see the hover on reflection.

Now I will be using an image for my nav bar which you can see here : http://trwb.co.uk/images/navimg.jpg

I want the reflection to show the hover too... but i dont want the reflection to be part of the link in the nav bar if you get what I mean

Can you help?

Thank you
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 Jun 1st, 2008, 11:57
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,321
Blog Entries: 2
Thanks: 9
Thanked 48 Times in 45 Posts
Re: my CSS Nav

Is it just me or have you already solved this?!
Last Blog Entry: The Google Misconception (Feb 3rd, 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 Jun 1st, 2008, 17:25
New Member
Join Date: Feb 2008
Location: Warwickshire
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: my CSS Nav

yup, used a different class for each nav link and a seperate image, the hover is the same image just moving position. I also used a <div> with no fill to sit over the reflection to stop the reflection being part of the link

what do you think
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 Jun 1st, 2008, 19:00
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,321
Blog Entries: 2
Thanks: 9
Thanked 48 Times in 45 Posts
Re: my CSS Nav

Looks good to me

One thing though - you could tidy up your CSS quite a bit. Since all your nav links share a lot of the same CSS, use;
Code: Select all
#nav ul li a {
float: left;
display: block;
height: 70px;
background-repeat: no-repeat;
background-position: 0 0
}
And then you can remove all those styles from the individual classes!

Plus another shorthand - change;
Code: Select all
 a.home:hover, a.services:hover, a.portfolio:hover, a.about:hover, a.contact:hover, a.animation:hover, a.testimonials:hover  {
background-position : 0 -71px;
}
to simply
Code: Select all
#nav ul li a:hover {
background-position : 0 -71px;
}
And then it'll be top notch
Last Blog Entry: The Google Misconception (Feb 3rd, 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
Reply

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


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


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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