Results 1 to 10 of 10

Thread: horizantal menu

  1. #1
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Question horizantal menu

    I am trying to find a menu that is in pure CSS, don't know if it's possible but I belive it is. I found somthing on another site but I just don't know quite how to get the coding from the site.
    I like Dynamic drive because they have all the scripts and everything, all you do is download and follow instructions. That's perfect and just what I am looking for problem is I can not find the exact type menu I am looking for.
    I need a menu where not only the first part is horizontal but I need there to be a secound and third menu where they too are horizontal. Maybe there is a way to use the one on here to make the menu go horiztal instead of vertical but I don't know how to do this.

    Please Help.
    Thank you all so much!
    Last edited by robin9000; 02-01-2009 at 07:18 PM. Reason: clear it up a bit.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What do you mean by:

    Maybe there is a way to use the one on here
    ?

    What menu is that? Please provide a link to the demo page. If this is different than:

    somthing on another site
    Please provide a link to that too.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    robin9000 (02-01-2009)

  4. #3
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Default Robin

    the link to the demo is http://www.cssplay.co.uk/menus/dd_valid_2.html
    This is what I want to do except for one more menu deep.
    I would just get the coding from the site but not sure how to exstact it. I have already tried and failled to do so.

  5. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by robin9000 View Post
    I need a menu where not only the first part is horizontal but I need there to be a secound and third menu where they too are horizontal.
    If I understand you correctly, you need a menu with two sub-levels and the one that you linked to has that.

    I'm not sure how they want you to get the code there, but you can just take a look at the source code, this is the css code that you should place in the head section of your page:
    Code:
    <style type="text/css">
    /* ================================================================ 
    This copyright notice must be untouched at all times.
    
    The original version of this stylesheet and the associated (x)html
    is available at http://www.cssplay.co.uk/menus/dd_valid_2.html
    Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
    This stylesheet and the associated (x)html may be modified in any 
    way to fit your requirements.
    =================================================================== */
    .menu {font-family: arial, sans-serif; width:749px; height:30px; position:relative; margin:0; font-size:11px; margin:20px 0 60px 0; background:#fff; position:relative; z-index:100;}
    .menu ul {padding:0; margin:0; list-style-type: none;}
    
    .menu ul li {float:left; border-left:1px solid #eee; width:106px;}
    
    .menu ul li a, .menu ul li a:visited {display:block; width:101px; text-decoration:none; padding:0 0 0 5px; height:30px; line-height:30px; color:#000; background:#c9c9a7 url(../../graphics/drop.gif) bottom right no-repeat;}
    
    .menu table {border-collapse:collapse; margin:0; padding:0; font-size:1em;}
    
    .menu ul li ul {visibility:hidden; position:absolute; top:30px; left:0; }
    
    
    .menu ul li:hover a,
    .menu ul li a:hover {color:#fff; background:#b3ab79;}
    
    .menu ul li:hover ul,
    .menu ul li a:hover ul {visibility:visible; width:749px;background:#b3ab79; color:#fff;}
    
    .menu ul li:hover ul.right_side li,
    .menu ul li a:hover ul.right_side li {float:right; border:0; border-left:1px solid #eee;}
    
    .menu ul li:hover ul.left_side li,
    .menu ul li a:hover ul.left_side li {float:left; border:0; border-left:1px solid #eee;}
    
    .menu ul li:hover ul li a.sub,
    .menu ul li a:hover ul li a.sub {background:#bd8d5e url(../../graphics/drop2.gif) bottom right no-repeat; color:#fff;}
    
    .menu ul li:hover ul li ul,
    .menu ul li a:hover ul li a ul {visibility:hidden; position:absolute; left:0; top:30px; }
    
    .menu ul li:hover ul li a,
    .menu ul li a:hover ul li a {display:block; background:#b3ab79; color:#fff;}
    
    .menu ul li:hover ul li a:hover,
    .menu ul li a:hover ul li a:hover {background:#dfc184; color:#000;}
    
    .menu ul li:hover ul li:hover ul,
    .menu ul li a:hover ul li a:hover ul {visibility:visible; color:#000; background:#dfc184;}
    
    .menu ul li:hover ul.right li {float:right;}
    
    .menu ul li:hover ul li:hover ul li a,
    .menu ul li a:hover ul li a:hover ul li a {background:#dfc184; color:#000;}
    
    .menu ul li:hover ul li:hover ul li a:hover,
    .menu ul li a:hover ul li a:hover ul li a:hover {background:#bd8d5e; color:#fff;}
    
    </style>
    and this is the html code that you should place in the body section of your page where you want the menu to appear:
    Code:
    <div class="menu">
    
    <ul>
    <li><a href="../menu/index.html">DEMOS<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul>
    		<li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
    
    		<li><a href="../menu/embed.html" title="Wrapping text around images">wrapping text</a></li>
    		<li><a href="../menu/form.html" title="Styling forms">styled form</a></li>
    		<li><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li>
    		<li><a class="sub" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK<!--[if IE 7]><!--></a><!--<![endif]-->
    			<!--[if lte IE 6]><table><tr><td><![endif]-->
    			<ul class="right_side">
    				<li><a href="../menu/form.html" title="Styling forms">styled form</a></li>
    
    				<li><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li>
    				<li><a href="../menu/hover_click.html" title="Hover/click with no active/focus borders">hover/click</a></li>
    			</ul>
    			<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    		</li>
    		<li><a href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a></li>
    		<li><a href="../menu/old_master.html" title="Image Map for detailed information">image map</a></li>
    
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="index.html">MENUS<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul>
    		<li><a href="spies.html" title="a coded list of spies">spies menu</a></li>
    		<li><a href="vertical.html" title="a horizontal vertical menu">vertical menu</a></li>
    
    		<li><a href="expand.html" title="an enlarging unordered list">enlarging list</a></li>
    		<li><a href="enlarge.html" title="an unordered list with link images">link images</a></li>
    		<li><a href="cross.html" title="non-rectangular links">non-rectangular</a></li>
    		<li><a href="jigsaw.html" title="jigsaw links">jigsaw links</a></li>
    		<li><a href="circles.html" title="circular links">circular links</a></li>
    	</ul>
    
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="../layouts/index.html">LAYOUTS<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul>
    		<li><a href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></li>
    		<li><a href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></li>
    		<li><a href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></li>
    
    		<li><a href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></li>
    		<li><a href="../layouts/minimum.html" title="A simple minimum width layout">minimum width</a></li>
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="../boxes/index.html">BOXES<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul>
    
    		<li><a href="spies.html" title="a coded list of spies">spies menu</a></li>
    		<li><a href="vertical.html" title="a horizontal vertical menu">vertical menu</a></li>
    		<li><a href="expand.html" title="an enlarging unordered list">enlarging list</a></li>
    		<li><a href="enlarge.html" title="an unordered list with link images">link images</a></li>
    		<li><a href="cross.html" title="non-rectangular links">non-rectangular</a></li>
    		<li><a href="jigsaw.html" title="jigsaw links">jigsaw links</a></li>
    
    		<li><a href="circles.html" title="circular links">circular links</a></li>
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="../mozilla/index.html">MOZILLA<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul>
    		<li><a href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a></li>
    
    		<li><a href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a></li>
    		<li><a href="../mozilla/content.html" title="Using content:">content:</a></li>
    		<li><a href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a></li>
    		<li><a href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a></li>
    		<li><a href="../mozilla/snooker.html" title="Snooker cue">snooker cue</a></li>
    		<li><a href="../mozilla/target.html" title="Target Practise">target practise</a></li>
    
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="../ie/index.html">EXPLORER<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul class="right_side">
    		<li><a href="../ie/exampleone.html" title="Example one">example one</a></li>
    		<li><a href="../ie/weft.html" title="Weft fonts">weft fonts</a></li>
    
    		<li><a href="../ie/exampletwo.html" title="Vertical align">vertical align</a></li>
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li><a href="../opacity/index.html">OPACITY<!--[if IE 7]><!--></a><!--<![endif]-->
    	<!--[if lte IE 6]><table><tr><td><![endif]-->
    	<ul class="right_side">
    		<li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li>
    
    		<li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
    		<li><a href="../opacity/png.html" title="partial opacity">partial opacity</a></li>
    		<li><a href="../opacity/png2.html" title="partial opacity II">partial opacity II</a></li>
    		<li><a class="sub" href="../menu/hover_click.html" title="Hover/click with no active/focus borders">HOVER/CLICK<!--[if IE 7]><!--></a><!--<![endif]-->
    			<!--[if lte IE 6]><table><tr><td><![endif]-->
    			<ul class="left_side">
    				<li><a href="../menu/form.html" title="Styling forms">styled form</a></li>
    
    				<li><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li>
    				<li><a href="../menu/hover_click.html" title="Hover/click with no active/focus borders">hover/click</a></li>
    			</ul>
    			<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    		</li>
    	</ul>
    	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    
    </ul>
    
    </div>
    Good luck!

  6. The Following User Says Thank You to Snookerman For This Useful Post:

    robin9000 (02-01-2009)

  7. #5
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Talking Robin

    Ya Snookerman that's exactly what I was tring to get. Thanks so much. Now all I have to do is make a couple images up, and I am done. By the way your right, I don't know where they want you to get the code from. I het the site for that part. It's why I love dynamic drive so much, they have everything, just did not have this one type of menu unfontinitly.

    Thanks for all your help, Robin

  8. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title.
    This will let other users know the problem has been solved.

    Good luck with your site!

  9. The Following User Says Thank You to Snookerman For This Useful Post:

    robin9000 (02-01-2009)

  10. #7
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Default Robin

    I thought that what you gave me would work and for the most part it dose but there must be somthing missing because the menu dose not seem to work right with what I have for code from what you have shown me.
    I have made a tempurary link on my site with the test menu.
    http://www.robinsden.890m.com/test_menu.html
    check the sorce code to see for your self.
    I have made it as plain as posible for to show you.

    When you hover over top it only shows the words for the secound menu at that point.
    Last edited by robin9000; 02-01-2009 at 06:52 PM. Reason: needed to add to explination

  11. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    It works fine for me in Fx3 and IE7, what browser are you using?

  12. The Following User Says Thank You to Snookerman For This Useful Post:

    robin9000 (02-01-2009)

  13. #9
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Default Robin

    That's strange I just checked it out and it seems to be working fine for me now. I have no idea what was going on.
    Thanks.

  14. #10
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Talking Snookerman

    It was probably your cache or the code might not have finished loading the first time, things like that happen so it's always good to refresh a couple of times to see if that fixes it.

    Good luck with your site!

  15. The Following User Says Thank You to Snookerman For This Useful Post:

    robin9000 (02-01-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •