Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2012, 12:34 AM   PM User | #1
myfayt
Senior Coder

 
Join Date: Apr 2010
Posts: 1,156
Thanks: 46
Thanked 95 Times in 94 Posts
myfayt can only hope to improve
Need help with css dropdown

I've been trying all day to make a drop down menu and used like 4 different tutorials and nothing has worked yet. Even tried a generator and it failed.
Can anyone help me? I just need the boxwood wreaths link to drop down 3 more links under it. Using the existing style sheet.

http://www.americanmadesigns.com/gardenspot/

Thanks,

PHP Code:
<div id="header">
                <
div id="logo">
                <
center>    <h1><a href="#">The Garden Spot</a></h1>  </center>
                </
div>
                <
div id="menu">
                    <
ul>
                        <
li class="first"><a href="index.html">Home</a></li>
                        <
li><a href="about.html">About Us</a></li>
                        <
li><a href="boxwood.html">Boxwood Wreaths</a></li>
                        <
li class="last"><a href="contact.php">Contact</a></li>
                    </
ul>
                    <
br class="clearfix" />
                </
div>
            </
div
__________________
Been a sign maker for 5 years. My business:
American Made Signs
myfayt is offline   Reply With Quote
Old 12-05-2012, 12:42 AM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
I use this tool sometimes. Works pretty good.

menumaker
__________________
Teed
teedoff is offline   Reply With Quote
Old 12-05-2012, 03:02 PM   PM User | #3
myfayt
Senior Coder

 
Join Date: Apr 2010
Posts: 1,156
Thanks: 46
Thanked 95 Times in 94 Posts
myfayt can only hope to improve
I tried that, but it throws a ton of stuff into it, like font colors, background colors, hover colors, etc. A whole pile of mess. I'd like to keep everything the way I have it.
__________________
Been a sign maker for 5 years. My business:
American Made Signs
myfayt is offline   Reply With Quote
Old 12-05-2012, 08:53 PM   PM User | #4
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
So it doesn't look pretty, but it should give you what you want and let you implement it accordingly...

Code:
<html>

<head>
<style type="text/css">
* { padding : none; border : none; margin : none; }
.logo { background : blue; }
.menuList { background : pink; }
.clear { clear : both; visibility : hidden; }
.menuList li {list-style : none; width : 150px; float: left; }
.subMenu ul li { list-style : none; width : 100px; background : orange; display : none;} 
.subMenu:hover ul li { display : block; }
.content {background : white; color : purple; }
#Wrapper { background : grey; border : 1px ridge black; width : 1024px;}
</style>

</head>


<body>
<div id="Wrapper">
  <div class="logo"> Logo image goes here </div>
  
  <div class="menu">
  <ul class="menuList">
    <li><a href="#"> index </a></li>
    <li><a href="#"> about </a></li>
    <li class="subMenu"><a href="#"> boxwood </a>
                        <hr class="clear" />
                        <ul>
                          <li><a href="#">one</a></li>
                          <li><a href="#"> two </a></li>
                          <li><a href="#"> three </a></li>
                        </ul>
    </li>
    <li><a href="#"> contact </a></li>
  </ul>
  </div>
  
  <hr class="clear" />
  
  <div class="content"> example content </div>
  
</div>
</body>
</html>
*and definitely does validate as it stands now lol :P
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 12-05-2012, 11:02 PM   PM User | #5
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Here you go sir!

I have edited the menu you where using an placed a stylish drop down menu for you

download url: http://5.175.183.24/codingforums/thegarden_tempz.zip

This file will be deleted within 24/hr - I don't files using all my space on my server.


Thank you

tempz.
tempz is offline   Reply With Quote
Old 12-06-2012, 12:56 PM   PM User | #6
myfayt
Senior Coder

 
Join Date: Apr 2010
Posts: 1,156
Thanks: 46
Thanked 95 Times in 94 Posts
myfayt can only hope to improve
It looks great, however you can't do it using my current menu style?
__________________
Been a sign maker for 5 years. My business:
American Made Signs
myfayt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:12 AM.


Advertisement
Log in to turn off these ads.