This is a discussion on "Making A CSS horizontal, drop down menu" within the Web Page Design section. This forum, and the thread "Making A CSS horizontal, drop down menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Making A CSS horizontal, drop down menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hey everyone
I'm wanting to build a CSS horizontal, drop down menu. I had a look around on the net for some tutorials on how to do this and couldn't really find ones that I liked. however, i did find one site that had what I wanted (http://www.sperling.com/examples/menuh/ ) but the menu was far to complicated for me as I am a newbie to making websites. if anyone know's how to make a menu like this easily, could you please help me? |
|
|
|
||||
|
Re: Making A CSS horizontal, drop down menu
|
|
|||
|
Re: Making A CSS horizontal, drop down menu
thanks for that, this one looks good
|
|
|||
|
Re: Making A CSS horizontal, drop down menu
This one I put together a while back will take you from the ground up in both vertical and horizontal menus. http://1ontheweb.net/downloads/Creat...enu_system.pdf Allyou need to sort out then is your visual styling preferences. |
|
|||
|
Re: Making A CSS horizontal, drop down menu
thanks, that one is good to.
|
|
|||
|
Re: Making A CSS horizontal, drop down menu
thaks ukgeoff, i followed your tutorial, but got confused at the part where you had to follow this link http://www.xs4all.nl/~peterned/csshover.html. I continued on and finished the tuorial. i have the menu uploaded on my site http://www.freewebs.com/powderhound11/ . it does not look like it should and the sub menu doesn't work in IE. If you or some else could help me fix it, it would be greatly appreciated.
This is my html that involves the list
Last edited by Powderhound; Aug 19th, 2006 at 23:34. |
|
|||
|
Re: Making A CSS horizontal, drop down menu
The reason that the dropdown doesn't work in IE is associated with the link you got confused over. IE, contrary to the W3C spec, does not support the :hover attribute on anything other than an <a> link. That link will enable you to get the latest version of the file that is accessed through the ieonly.css file. This file adds that missing functionality to IE. Get rid of the charset instruction from the ieonly.css file. The second <li> in your menu has an empty <a> link at the moment. If you read through the latter part of the tutorial, you will see that I deliberately left an issue or two, such as getting the dropdown menu to stay put, for you to sort out. This was so it reinforces your understanding rather than just copying something verbatum. What you need to do is in the tutorial, you just have to figure it out. If you really, really can't sort it, then come back to me. |
|
|||
|
Re: Making A CSS horizontal, drop down menu
thanks, i will give it a go.
|
|
|||
|
Re: Making A CSS horizontal, drop down menu
I have fixed my menu. Although there is still a problem when veiwing it in IE. go to my website to see what I mean.
http://www.freewebs.com/powderhound11/ |
|
|||
|
Re: Making A CSS horizontal, drop down menu
Just had a quick look at your code. Not convinced you stuck to the tutorial! There is some JavaScript near the top of the file that might be interfering and doesn't appear to be needed so get rid of it. You have two <ul id='nav'> in your code which is not allowed. Each id can only appear once on any given page. Give your code a proper DOCTYPE and sort out the validation problems and it will make life a lot easier. |
|
||||
|
Re: Making A CSS horizontal, drop down menu
Just for reference, this is an awesome little .htc file which is designed for IE stuff like this. Works like a charm, although using it in your CSS messes validation.
http://www.xs4all.nl/~peterned/csshover.html
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Making A CSS horizontal, drop down menu
Hi moojoo, This was all covered in the tutorial I directed him to and if you use it like I suggest, then your main css file will still validate. |
|
|||
|
Re: Making A CSS horizontal, drop down menu
Quote:
Thanks for the help Last edited by Powderhound; Aug 22nd, 2006 at 07:37. |
|
|||
|
Re: Making A CSS horizontal, drop down menu
A DOCTYPE should be the first line of code on your page. It specifies the version of (x)html being used to code the page. Use the validation service provided by W3C. http://validator.w3.org/ They also have a css validator. http://jigsaw.w3.org/css-validator/ |
![]() |
| Tags |
| making, css, horizontal, drop, down, menu |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Positioning problems with horizontal drop down menu | dreamabstract | Web Page Design | 2 | Jun 16th, 2008 12:09 |
| Problems making horizontal footer with 2 lines... | MikeTheVike | Web Page Design | 6 | Jul 13th, 2007 13:06 |
| CSS Horizontal drop-down menu ??? | j4mes_bond25 | Web Page Design | 2 | Apr 6th, 2006 16:10 |
| horizontal drop-down menu | da_stimulator | JavaScript Forum | 2 | Nov 4th, 2004 11:16 |
| Horizontal drop down list | Ranko | Web Page Design | 8 | Oct 23rd, 2004 10:25 |