HTML - Html Drop Down Navigation Bar.
Impossible right? Wrong. Or at least in mozilla firefox. I was playing around and came up with this:
HTML Code: <style type="text/css"> .nav{ width: 150px; height: 400px; border: 1px solid #222222; background: #151515; color: #bb55ff; font-family: tahoma; font-size: 8pt;} .blank{ background-color: #000000; height:12;} .nav ul{ height: 12px; padding: 0px; text-align: right; overflow: hidden; background-color: #000000; border: 1px solid #222222;} .nav ul:hover{ padding: 5px; height: auto; text-align: left; overflow: visible; background-color: #000000; border: 1px solid #222222;} .nav li{ list-style-image: none; background-color: #151515; border: 1px solid #222222;} .nav li:hover{ list-style-image: none; background-color: #000000; border: 1px solid #222222;} </style> <div class=nav> <ul> <div class=blank>Site Nav</div> <li><a href="#top">Top</a></li> <li><a href="#news">News</a></li> <li><a href="#notice">Notice</a></li> <li><a href="#friends">Friends</a></li> <li><a href="#friends-form">Signup</a></li> <li><a href="#likes">Likes</a></li> <li><a href="#dislikes">Dislikes</a></li> <li><a href="#music">Music</a></li> <li><a href="#css">Layouts</a></li> </ul> <ul> <div class=blank>Links</div> <li><a href="/journal.php?u=Techie-ish">Journal</li> <li><a href="/gallery.php?u=Techie-ish">Gallery</a></li> <li><a href="http://quinn.1429caddo.net">Homepage</a></li> <li><a href="http://quinn.1429caddo.net/poetry.htm">Poetry</a></li> <li><a href="http://www.myspace.com/staining_in_the_rain">Myspace</a></li> </ul> <ul> <div class=blank>VF Nav</div> <li><a href='/inbox.php'>Inbox</a></li> <li><a href='/comments.php'>Comments</a></li> <li><a href='/view_pic_comments.php'>Pic Comments</a></li> <li><a href='/journal.php'>Journal</a></li> <li><a href='/edituser.php'>Profile</a></li> <li><a href='/editsettings.php'>Settings</a></li> <li><a href='/editpictures.php'>Pictures</a></li> <li><a href='/video/editvideos.php'>Videos</a></li> <li><a href='/editicons.php'>Icons</a></li> <li><a href='/edit_lists.php'>Lists</a></li> <li><a href='/group_mine.php'>Cults</a></li> <li><a href='/login.php?logout=1&c=a066e0f3'>Logout</a></li> </ul> </div> it doesnt work in internet explorer can someone tell me why? Similar TutorialsHi All Not sure if this is in the right place.... I am having difficulties (as always) with drop down menus on the main navigation of the site below. It wont drop down. I think it may be beacuse i am over using some javascript? Can someone confirm this? http://www.silver-worldwide.com/dev/BenBall/ Any help or suggestions would be real helpful! Thanks peeps! Matt I guess the first thing to do is give you a link to my site: http://theinstinct.net. Now if you notice, on the left hand side we have a Navigation Bar and a few other small things. Lately we've (myself and a friend work on the site) been editing and updating it a lot and we realized that we'd have to make the same changes on every single page. So my question for you is, is there a way to execute a separate HTML file inside another? Like you can link to a CSS file or to a JavaScript file, can you do that with an HTML file? Thanks for the help! Hi , Ive got the following html for a site nav bar. I want to shorten the width of the bar by breaking up the two word sections into one column.....i.e About Us would read as.... About Us The section 'Full time' would become Full time This is the html I have - I'm guessing that I may have to create a table? Any advice on this would be gratefully received! The html for the navigation bar is........ <a class=topmenu href="blank.html" target="" tab="0" pid="212" runat="server">About Myeloma</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html">About Us</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="959" runat="server">Teams/players</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="970" runat="server">Professional footballers</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="976" runat="server">Venue</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="974" runat="server">Fixtures</a> <span style="COLOR: #c4c7c8">| </span> <a class=topmenu href="blank.html" target="" tab="0" pid="978" runat="server">Full time</a><span style="COLOR: #c4c7c8"> | </span> <a class=topmenu href="blank.html" target="" tab="0" pid="975" runat="server">News</a> Hey guys, EDIT: I figured it out. There was a phantom image that I had between the two that no longer belongs. Nevermind! Thanks, ~C-Style~ please help. i used html <object> tag and i embeded a .swf flash file inside my html page... everything worked great until here.... now i want to let the visitor of my page to be able to navigate through my .swf file through my own navigation bar buttons that i want to put above the .swf file... i want my visitor to be able to press the avigation bar buttons to play and stop and forward and backward and rewind and so on... i dont want my visitor to press the right mouse button when he over the flash object to navigate i want to have my own navigation static bar above the flash.... what solutions there is to this problem....? what is the best solution ? best regards. hello i have a page 'gallery.html' that i want to show up when the URL www.site.com/gallery is requested. how do i achieve this? thanks in advance rlbw I have a small problem with my 'form drop down menu'. I've got a content box made of cells. There is the title box and the content box. In the header, i'd like to place on the left site the content's title and on the right side, i would like to have a drop down menu. So far, so good. The problem appears as soon as I add the <form> tag to my dropdown menu. The problem is that it pulls the cell in height and I cannot modify it with my HTML-editor. Can any one tell me what i can do, or even better, post me the finished code Here is my code: HTML Code: <body> <table width="630" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="630" height="10" align="center" bgcolor="#4D4D4D"> <table width="620" border="0" cellspacing="0" cellpadding="0" id="table4"> <tr> <td class="tabletitle"> <span lang="en-us">Titel</span></td> <td class="tabletitle" width="171"><p align="right"> <form ACTION="URI"> <p align="right"> <select name=selection onchange="location.href=(form.selection.options[form.selection.selectedIndex].value)"> <option class="under" selected value="In this section">In this section:</option> <option> </option> <option value="http://url"> URL 1</option> <option value="http://url"> URL 2</option> <option value="http://url"> URL 3</option> </select></p> </form> </td> </tr> </table> </td> </tr> </table> </body> Thank you in advance Hello everyone, im very sorry if i am reposting this question, i have tried to find the answer on the forum with no luck. I am very new to HTML and am learning everyday, i am trying to make a top menu kinda like on www.quantas.com.au. i would just like the drop down to be horizontal instead of the normail vertical menu. If anyone has any code to help me out or a tutorial that i would be able to learn from, i would be very appreciative. Thankyou in advance. Mikey i want to make a thin drop down menu. like rather then being 20pxls high i want it be be 10-15pxls high and i want the background color to be black and the text to be white. just something simple and customizeable is perfect How do you display select drop downs side by side on web page using HTML? Hi, I am looking for some help with HTML forms, namely forms which mainly comprise of drop-down boxes. I know how to create drop-down boxes in forms, though what I want is that each variable in the drop-down box should go to a different URL. For example, if someone selects "variable 1" and then clicks submit, it should go to a different URL than when they select "variable 2" and click submit. I have all the URL's, though I'm just not sure of how to make each variable go to a different URL. Can someone help me out with this? If anyone knows of a site which has something similar like this can you please direct me to it so that I can look at he source? Thanks. hi everyone, i'm having trouble figuring out when i do the drop down box whatever the person selects how do i pass that as a parameter into java script or can i put the drop down box in the java script? My next question has to do with the fact that i am building a site for classified ads. and i want to put the information into a database how and what DBMS should i use? i was thinking RUBY, SQL, or PHP. or could i do JDBC any ideas or suggestions let me know. thanks Hi! I hope you guys can help with what is wrong here. Ive been slaving over this html trying to get it to work and I gave up. Heres my problem. I have two drop down menus on this page. However the right drop down menu only goes to a page from the menu on the left. I have them separated, Brazil and Romania, so the Romania menu links pull up one of the Brazil pages and I dont understand why because in the html I have clearly specified the links to go to different pages. I will attach the html used and ask someone to please point out the source of this html conflict. I've been trying to figure out how to create a drop down menu in place of the original navigation on my website. I found what I want to do I just need to know how to apply it. Here's the website with what I want to do: http://www.dynamicdrive.com/dynamici...roptabmenu.htm It's example 2. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>|*|Doll Directory|*|</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <!-- Stylesheet --> <style type="text/css"> body { background: url(''); background-color: #FFFFFF; font-family: "Trebuchet MS"; font-size: 12px; line-height: 1.5em; color: #ffffff; letter-spacing: 1px; } #container { margin: 0 auto; border: 4px solid #FF0080; width: 722px; background-color: #FFFFFF; } #header { width: 722px; } #content { background-color: #FFFFFF; padding: 4px; width: 500px; text-align: left; margin-left: 0px; margin-top: -8px; } #sidebar { float: right; width: 212px; background-color: #FFFFFF; margin-right: 0px; margin-top: -8px; height: auto; padding: 4px; text-align: center; } #footer { clear: both; background-color: #FF0080; margin: 0px; width: 722px; height: 45px; text-align: center; } #bar { text-align: center; margin: 8px; padding: 12px; margin-left: 0px; background-color: #FF0080; margin-top: 0px; width: 700px; } a.nav:link, a.nav:visited, a.nav:active { text-decoration : none; font-family : Trebuchet MS; font-size : 10px; line-height : 12pt; text-align : center; color : #fa829a; font-weight : bold; background-color : #252525; cursor : default; text-transform : uppercase; padding : 5px; border-right : 5px solid #c15876; border-bottom : 1px dotted #7d7d7d; } a.nav:hover { color : #ffffff; background-color : #363636; border-right : 5px solid #d58fb4; border-bottom : 1px dotted #515151; } .site { font-family: Gabriola; font-size: 22px; font-weight: bold; color: #fa829a; } h1 { margin-top: 5px; text-align: left; color: #fa829a; font-family: Gabriola; font-size: 25px; font-weight: bold; padding: 5px; font-style: none; border-bottom: 1px dotted #535152; letter-spacing: 1px; } h1:first-letter { text-align: left; color: #fa829a; font-size: 25px; font-style: normal; font-weight: normal; } h2 { font-weight: bold; text-align: left; color: #fa829a; font-family: Gabriola; font-size: 18px; border-bottom: 1px dotted #8a8988; padding-bottom: 2px; margin-top: 7px; margin-bottom: 7px; } a:link,a:visited,a:active { text-decoration: none; font-family: Trebuchet MS; cursor: default; font-size: 11px; color: #fa829a; font-weight: normal; } a:hover { font-family: Trebuchet MS; font-size: 11px; text-decoration: none; color: #fa829a; background-color: white; padding: 1px; } b,strong { font-family: "Trebuchet MS"; font-size: 11px; font-weight: bold; color: #fa829a; } i,em { font-family: Gabriola; font-style: italic; font-size: 11px; color: #fa829a; } u { font-family: Gabriola; font-size: 11px; border-bottom: 1px dotted #add568; color: #fa829a; padding-bottom: 1px; text-decoration: none; } blockquote { width: 350px; margin: 8px; padding: 3px; background: #fff; border: 3px solid #413b31; cursor: default; color: #fa829a; } </style> </head> <body> <div id="container"> <!-- Header image --> <div id="header"> <img src="http://missdolldecade.awardspace.us/MDD_Banner.png" border="0" alt="" /> <div id="bar"> <div class="nav"><a href="http://missdolldecade.awardspace.us/index.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/rules.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/scores.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/round1.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/round2.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/round3.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/awards.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/judges.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/enter.html" class="nav"><font color="#FFFFFF">Home</font></a> <a href="http://missdolldecade.awardspace.us/links.html" class="nav"><font color="#FFFFFF">Home</font></a></div> </div> <!-- Sidebar --> <div id="sidebar"> <h2>Tagboard</h2> <!-- Begin ShoutMix - http://www.shoutmix.com --> <iframe title="missdolldecade" src="http://www6.shoutmix.com/?missdolldecade" width="207" height="400" frameborder="0" scrolling="auto"> <a href="http://www6.shoutmix.com/?missdolldecade">View shoutbox</a> </iframe> <br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br /> <!-- End ShoutMix --> </div> <!-- Main content --> <div id="content"> <h1>Updates</h1> </div> <!-- Footer --> <div id="footer"> <a href="http://missdolldecade.awardspace.us">Miss Doll Decade</a> (C) Amber Riley 2010<br> <a href="http://missdolldecade.awardspace.us/contact.html">Contact MDD</a> </div> <!-- Container End --> </div> </div> </body> </html> Hello All, Sorry to ask for help on my first visit. Is there any way to link drop down lists to each other using html? For example, the first drop down list would have states/counties. Once they select one, on the second drop down list it automatically generates all the towns in that county/state. It's meant to be part of a form for a website. Many thanks to all Hi, I have a website built in HTML and CSS in DW CS4. I have a horizontal top navigational menu and wish to add a drop down menu. When I select the entire menu and click on properties I can add a vertical menu item, but it is not an actual drop down. when I copy the html from another site that does have a functioning drop down, it does not work. So this is what it looks like: <div id="runner"> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="page1.html">page 1</a></li> <li><a href="page2.html">page 2</a></li> what shoudl the code look like to add a drop down menu to each of these pages? Or should I do something in my spry menu? Can anyone help me with this? Hi Peeps, I have created a table of 24 football teams with links to all their forums so other people can link up with fans from around the country and talk football. However I realise that some of these teams have upto four forums. I would like to keep the table as it is and create some kind of drop down where the names of the forum drop down. Is it possible to create some sort of drop down in a table and can someone point me in the right direction so I might create one. Here is the page: http://www.freewebs.com/jonnibravo/l...forumsmain.htm Hi! I would like to create a drop down menu in HTML where the user can choose many options, not possible in simple HTML? Dharma Hello, I am a newbie to html but am working on a company website. I am looking for help with the drop down nav bar. I want to have the bar justified underneath the part that you are hovering over (for example, when you hover over Douglas Cardinal, the words biography, philosophy, etc would be justified underneath. When you click portfolio, current projects, museums, etc would be justified under portfolio) http://www.djcarchitect.com/portfoli...tprojects.html Is this possible? Thanks!! |