WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Help with Dropdown Menu on Fri Jul 01, 2011 9:04 pm

Drogba921


Registered Member
Registered Member
Hey guys... I'm currently developing a new version of my site:


And i've hit a problem.

I need to get the button: Game Pages - to drop down and show the list: Action, Adventure, Arcade, Puzzle, Shooting, Sports... But I can't figure out how. Can anyone help me?

Here's my CSS:

Code:

#nav {
    width: 940px;
    height: 60px;
    margin: -20px auto 0px auto;
}

ul#navigation {   
    width:1000px;
    margin-left: 0px;
    list-style:none;
    height:57px;
}

ul#navigation li {
    display:inline;
   
   
}

ul#navigation li a {
    height:57px;
    float: left;
    color: #ffffff;
    font-family: "Century Gothic", Arial, Sans-Serif;
    text-shadow: 0.1em 0.1em 0.2em black;
    text-decoration:none;
    text-align: center;
    margin-right: -10px;
}

ul#navigation  li a span {
    display:block;
    text-align: center;
    padding: 12px 0px 10px 0px;
}

ul#navigation li#navigation-1 a {
    width:155px;
    background:url) no-repeat 0px 0;
}

ul#navigation li#navigation-1 a:active,
ul#navigation li#navigation-1 a:hover {
    background-position:0px -57px;
}
ul#navigation li#navigation-1 a.current {
    background-position:0px 0px -57px;
}


Here's my HTML:

Code:
<div id="nav">
    <ul id="navigation">
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>Home</span></a></li>
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>About</span></a></li>
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>Contact</span></a></li>
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>Game Pages</span></a></li>
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>High Scores</span></a></li>
        <li id="navigation-1"><a href="#" title="Lorem Ipsum"><span>Advertising</span></a></li>
    </ul>

</div>



Last edited by Drogba921 on Mon Jan 16, 2012 7:55 am; edited 1 time in total

http://www.codinghelp.org

2 Re: Help with Dropdown Menu on Sun Jul 03, 2011 3:01 am

Drogba921


Registered Member
Registered Member
Bump

http://www.codinghelp.org

3 Re: Help with Dropdown Menu on Tue Jul 05, 2011 7:38 pm

Drogba921


Registered Member
Registered Member
bump

http://www.codinghelp.org

4 Re: Help with Dropdown Menu on Thu Jul 07, 2011 2:02 am

hoodedwarbler12


Registered Member
Registered Member
You mean another dropdown from that first one? *Does research*

http://www.wackyswebkinznewz.com/

5 Re: Help with Dropdown Menu on Fri Jul 08, 2011 1:36 am

Drogba921


Registered Member
Registered Member
I just want a menu to drop down

http://www.codinghelp.org

6 Re: Help with Dropdown Menu on Fri Jul 08, 2011 1:57 am

hoodedwarbler12


Registered Member
Registered Member
Oh, well that's easy.
Code:
<span class="genmed" style="line-height: 150%;"> <a href="portal.htm">Portal</a><br>
 <a href="forum.htm">Forum</a><br>
 <a href="memberlist.forum" rel="nofollow">Members</a><br>
 <a href="faq.forum">FAQ</a><br>
 <a href="search.forum">Search</a><br></span>

Replace with your links.

http://www.wackyswebkinznewz.com/

7 Re: Help with Dropdown Menu on Fri Jul 15, 2011 1:10 am

Drogba921


Registered Member
Registered Member
That's not gonna make the links drop down Wink

http://www.codinghelp.org

8 Re: Help with Dropdown Menu on Fri Jul 15, 2011 2:45 am

Unknown Data


Registered Member
Registered Member
Have you tried something like this? Smile
Code:
<form>
  <select onchange="location = this.options[this.selectedIndex].value;">
      <option value="LINK HERE">NAME FOR LINK HERE
  </select>
</form>

http://www.sjovfakta.dk

9 Re: Help with Dropdown Menu on Sun Sep 04, 2011 3:06 pm

Jackery


Registered Member
Registered Member
Code:
<style>

#holder {list-style-type: none; padding-left: 3px; padding-right: 3px; padding-top: 2px;}

#holder a:hover {color:#c00;background:#ddd;}

#holder {width:100px; line-height:18px; height:20px; overflow:hidden; text-align:center; z-index:100; background-color:#eee; top: 0; left: 253; position: absolute; color: black; }

#holder:hover {height:140px; cursor:pointer; background:#eee; color: darkblue;  }

#holder a {display:block; width:100%; line-height:18px; color:#000; text-decoration:none; padding-bottom: 2px}


</style>
<div id = "navbar">

<ul id="holder"><span style = "inner">Games<br /><hr/>

<a href="#forum">Forum</a>

<a href="#">Stratergy</a>

<a href="#">Puzzle</a>

<a href="#">Shooting</a>

<a href="#">Sports</a>


</div>

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum