473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Nav not working HTML5 and CCS

nomad
664 Expert 512MB
Greetings everyone:

I'm new to HTML5 and CSS3 and I can not figure out why my Navigation (menu) is not working.

Note I have a link for Motelakura (H1 tag) and when you place the cursor over it the Hand does not shop up unless you have it on the top part of the wording. Did that make any sense.

If you need all the css coding please let me know.

Any help would be great. Thanks in advance.



Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
  2.  
  3. <script language="JavaScript" type="text/JavaScript">
  4. <!--
  5. function MM_swapImgRestore() { //v3.0
  6.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  7. }
  8.  
  9. function MM_preloadImages() { //v3.0
  10.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  11.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  12.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  13. }
  14.  
  15. function MM_findObj(n, d) { //v4.01
  16.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  17.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  18.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  19.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  20.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  21. }
  22.  
  23. function MM_swapImage() { //v3.0
  24.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  25.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  26. }
  27.  //-->
  28. </script>
  29.  
  30. </head>
  31.  
  32. <body onload="MM_preloadImages('buttons/home_over.jpg','buttons/about_us_over.jpg','buttons/directions_over.jpg','buttons/contact_us_over.jpg','buttons/things_to_over.jpg')">
  33.  
  34. <!-- header-wrap -->
  35. <div id="header-wrap">
  36.     <header>
  37.  
  38.         <hgroup>
  39.             <h1><a href="index.html">Motelakura</a></h1>
  40.             <h3>Hours: 24 hours a day, seven days a week
  41.           </h3>
  42.         </hgroup>
  43.  
  44.         <nav>
  45.             <ul>
  46.               <li><img src="buttons/ends.jpg" width="60" height="36" /></li>
  47.               <li><a href="index.html"><img src="buttons/home.jpg" alt="Home Page" name="home" width="126" height="36" border="0" id="home" onMouseOver="MM_swapImage('home','','buttons/home_over.jpg',1);MM_swapImgRestore()" /></a></li>
  48.               <li><a href="about_us.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('about_us','','buttons/about_us_over.jpg',1)"><img src="buttons/about_us.jpg" alt="About Us" name="about_us" width="126" height="36" border="0" id="about_us" /></a></li>
  49.               <li><a href="directions.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('directions','','buttons/directions_over.jpg',1)"><img src="buttons/directions.jpg" alt="Directions to" name="directions" width="126" height="36" border="0" id="directions" /></a></li>  
  50.               <li><a href="contact_us.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact us','','buttons/contact_us_over.jpg',1)"><img src="buttons/contact_us.jpg" alt="Contact Us" name="contact us" width="126" height="36" border="0" id="contact us" /></a></li> 
  51.               <li><a href="attractions.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Things_to_do','','buttons/things_to_over.jpg',1)"><img src="buttons/things_to.jpg" alt="Thing to do in LA county" name="Things_to_do" width="126" height="36" border="0" id="Things_to_do" /></a></li>        
  52.               <li><img src="buttons/ends.jpg" width="60" height="36" /></li>
  53.             </ul>
  54. </nav>  
  55. </header></div>
  56.  
  57.  
here is the css3
Expand|Select|Wrap|Line Numbers
  1.  
  2. /* ------------------------------------------------------
  3.     STRUCTURE
  4. --------------------------------------------------------- */
  5. #header-wrap {
  6.     width: 100%;
  7.     height: 70px;
  8.     z-index: 99999;
  9.    /* position: fixed;*/
  10.     top: 0;
  11.     left: 0;
  12. }
  13. header {
  14.     position: relative;
  15.     width: 900px;
  16.     height: 70px;
  17.     margin: 0 auto;
  18. }
  19.  
  20.  
  21. /* -------------------------------------------
  22.     Header
  23. -------------------------------------------- */
  24.  
  25. /* Logo */
  26. header hgroup {
  27.     position: absolute;
  28.     background: url(../images/header.jpg) no-repeat;
  29.     height: 142px;
  30.     width: 307px;
  31.     display: block;
  32.     top: 18px;
  33.     left: 2px;
  34. }
  35. header hgroup h1 a {
  36.     margin-top: 40px;
  37.                 margin-left: 5px;
  38.                 margin-bttom: 15px;
  39.                 /*text-indent: -9999em;*/
  40.     display: block;
  41.     height: 45px;
  42.     width: 300px;
  43. }
  44.  
  45. header hgroup h3  {
  46.        margin-top: 25px;
  47.    /* text-indent: -9999em;*/
  48.  
  49.     height: 14px;
  50.                 font-size: 12px;
  51. }
  52.  
  53. /* Main Navigation */
  54. header nav  {
  55.     float: left;
  56.     margin-top: 155px;
  57.  
  58. }
  59. header nav ul  {
  60.        width: 900px;
  61.     padding: 0;
  62.     list-style: none;
  63.  
  64. }
  65. header nav ul li {
  66.     float: left;
  67.  
  68. }
  69.  
  70.  
Jul 18 '13 #1
1 1550
Xillez
93 64KB
Show the part of the code that has the problem, and explain in detail what is wrong...

No it didn't make sence...

Do you want a dropdown menu? Or something simalar?
Jul 19 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Andy Dingley | last post by:
http://www.molly.com/2007/06/14/defy-the-pedantic-semantic-html5-and-xhtml-11-must-stop-for-now/
2
by: howa | last post by:
http://www.w3.org/TR/2008/WD-html5-20080122/#the-header have a good day
3
by: krishnaneeraja | last post by:
Hi, I am developing a HTML5 based application. I need to process two queries concurrently, one inside another. Pseudo code attached below: function main() { db.transaction( function...
12
tpgames
by: tpgames | last post by:
Okay, I admit I was lousy at DIV tags before HTML5. However, 4.01 is leaving us, and I'm making a new site, and wanted to do it right in HTML5/CSS3. Nothing fancy, just wanted... THIS content ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.