This is a discussion on "CSS dropdown menu problems" within the Web Page Design section. This forum, and the thread "CSS dropdown menu problems are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS dropdown menu problems
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
CSS dropdown menu problems
I am not sure if this is possible, and sorry if it doesn't make that much sense
http://craigmoran.co.uk/home.php What I want to do is instead of having a navigation bar, is just to have one link and have this as dropdown linking to the other pages. What I need is 1. Help on a decent dropdown, I can hide the second links, it's just getting them to appear again that i struggle with 2. Is there a way through CSS to have the current dropdown display where it says home now if you get what i mean, for example, when the secondary links are hidden and dropping down, when i click on contact, is there a way through CSS to get this to appear where home is now, or would i need JS for this? Sorry if this is a little confusing thanks in advance Craig Ps. here's a link to my CSS http://craigmoran.co.uk/style.css
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
|
|
#2
|
|||
|
|||
|
Re: CSS dropdown menu problems
|
|
#3
|
||||
|
||||
|
Re: CSS dropdown menu problems
Thanks mate
Anyone have any ideas on question 2 lol?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#4
|
||||
|
||||
|
Re: CSS dropdown menu problems
Number 2 would require manual updating or *maybe* a PHP script.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#5
|
||||
|
||||
|
Re: CSS dropdown menu problems
Thanks mate, will look into it
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#6
|
|||
|
|||
|
Re: CSS dropdown menu problems
For # 2 Do this
1. Append an ID to the <body> tag of each page i.e. <body id="contactPage"> then in your CSS you duplicate say your CSS hover state and name it #contactPage #nav ul li#contact a { style here } I did that on my page http://mevans76.com so each nav highlights based on the page you are on. No PHP/JS needed. And its all in the CSS so no changes to your actual pages are required to update. for example my page has a very basic nav no menus so my CSS looks like this to cover them all in the CSS in a single declaration.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Apr 3rd, 2008 at 21:23. |
|
#7
|
||||
|
||||
|
Re: CSS dropdown menu problems
Thanks for that
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dropdown menu from logo | freddylaval | JavaScript Forum | 3 | Jan 13th, 2008 16:27 |
| menu, dropdown | everland | Flash & Multimedia Forum | 2 | Aug 21st, 2007 14:58 |
| CSS dropdown menu problem in IE | Tino | Web Page Design | 2 | Jun 3rd, 2007 08:48 |
| New window from dropdown menu | magiccupcake | JavaScript Forum | 5 | Jan 2nd, 2007 01:10 |
| Dropdown menu | Jorgerb | Flash & Multimedia Forum | 6 | May 17th, 2005 08:29 |