|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
Adding drop down in Navigation bar
Hello all, I been tasked with redoing a website, the preliminary site is complete. However I would like to create a mouse over drop down box in the navigation bar. I've tried a couple different Java scripts, and html code, however I cannot get it to work. If anyone has any tips or ideas, all will be accepted. Here's the website in Question;
http://www.alpenadiver.com/DiveAlpena
__________________
Registered linux user # 217167 - Be counted http://counter.li.org/ Currently running: Desktop - XP Pro, Fedora HP dv9700z CTO laptop, running Windows 7 Pro |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
Thanks force, That is where my problems begin, I've tried three or four of the examples, copy and pasted code and it doesn't work out, my problem is that this my first exposure to CSS, and don't know if I need to edit any of the CSS files or not. I have a total of CSS files, the index.html only calls two of them, default.css, and thickbox.css
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Personally, I would take all the layout and formatting stuff out of the default.css file. The default file is just that--for setting defaults. Make another file named layout.css
Second, the reason you're not seeing any dropdowns appear is because there is no code for it in your HTML. All you have is just your first-level navigation items Dive Charters, Diving the Sanctuary, etc) |
|
|
|
|
|
#5 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
I picked up O'Reilly's CSS- the missing manual, looks like I need to learn the nuts, and bolts of CSS.
As for the web-page itself, when I do add the Unordered List tag then a link it only shows up under one of the original links (Diving the Sanctuary, Wreck Sites, etc.) getting it to create a drop down list is my problem. |
|
|
|
|
|
#6 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Usually, the HTML goes something like this...you nest a list within a list. Everything else is controlled with CSS.
PHP Code:
|
|
|
|
|
|
#7 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
Thanks again force, I'll play around with it and see how it goes.
|
|
|
|
|
|
#9 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
joshuab, the mouseover you linked is the one I've been working on. however when I copy and paste the code that is where I run into problems, the links from the mouse over code show up next to my horizontal nav bar, in the vertical position.
|
|
|
|
|
|
#10 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Don't use javascript for this. It's not necessary. It can be done more simply with just CSS.
|
|
|
|
|
|
#11 |
|
Member (11 bit)
Join Date: Nov 1999
Location: Northeast, Michigan
Posts: 1,063
|
Well I'm back, not having any luck with the drop down list, as you can see in the link. I used the code you gave me Force, however I think something else is controlling the layout.
http://picasaweb.google.com/lh/photo...eat=directlink |
|
|
|
|
|
#12 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
HTML provides the structure...CSS provides the layout. You'll need to work with the CSS some more.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|