473,320 Members | 2,024 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,320 software developers and data experts.

Nav bar problems in IE7

I'm having problems with the spacing of my navigation bar for IE7. It works in other browsers but drops down to a second line in IE7. Here is the page:
http://www.honeymoonersreviewguide.com/index2.php

Thanks so much,
Michelle

Expand|Select|Wrap|Line Numbers
  1.  
  2. #nav-container {
  3.     height: 28px; 
  4.     width: 100%;
  5.     top: 1em;
  6.     left: 1em;
  7.     background: #3068B1 url('../interior/bkg_header.png') 0 0 repeat-x; 
  8.     border-top: 1px solid #23518E;
  9.     border-bottom: 1px solid #23518E; }
  10.  
  11. #nav {
  12.     font-size: 10px;
  13.     float: left;
  14.     margin: 0; 
  15.     padding: 0; }
  16.  
  17. #nav a     {
  18.     text-align: left;
  19.     display: block;
  20.     border: 1px solid #23518E;
  21.     border-top: none;
  22.     white-space: nowrap;
  23.     margin: 0;
  24.     padding: 4px; }
  25.  
  26. #nav a:link, #nav a:visited, #nav a:active {
  27.     color: #FFFFFF;
  28.     background-color: #3068B1;
  29.     text-decoration: none; }
  30.  
  31. #nav a:hover {
  32.     color: #23518E;
  33.     background-color: #CCCCCC;
  34.     text-decoration: none; }    
  35.  
  36. #nav a.top_parent {     
  37.         margin: 0;
  38.         padding: 7px 18px;
  39.         background: #3068B1 url('../interior/bkg_header.png') 0 0 repeat-x; 
  40.         text-align: center;
  41.         font-weight: bold; 
  42.         border-right: none; }
  43.  
  44. #nav a.top_parent:hover {
  45.     color: #FFFFFF;
  46.     background: none;
  47.     background-color: #3068B1; }    
  48.  
  49. #nav a.align { 
  50.     margin: 0; 
  51.     padding: 7px 18px;
  52.     background: #3068B1 url('../interior/bkg_header.png') 0 0 repeat-x; 
  53.     text-align: center;
  54.     font-weight: bold; 
  55.     border: none; 
  56.     border-bottom: 1px solid #23518E; }
  57.  
  58. #nav a.align:hover {
  59.     color: #FFFFFF;
  60.     background: none;
  61.     background-color: #3068B1;}
  62.  
  63. #nav ul {
  64.     list-style: none;
  65.     margin: 0;
  66.     padding: 0;
  67.     float: left;
  68.        width: auto; }
  69.  
  70. #nav li {
  71.     position: relative;
  72.     min-height: 1px; 
  73.     vertical-align: bottom; }
  74.  
  75. #nav ul ul {
  76.     position: absolute;
  77.     z-index: 500;
  78.     top: auto;
  79.     display: none;
  80.     padding: 1em;
  81.     margin: -1em 0 0 -1em; 
  82.     width: auto; }
  83.  
  84. div#nav li:hover {
  85.     cursor: pointer;
  86.     z-index: 100; }
  87.  
  88. div#nav li:hover ul ul,
  89. div#nav li li:hover ul ul,
  90. div#nav li li li:hover ul ul,
  91. div#nav li li li li:hover ul ul
  92. {display:none;}
  93.  
  94. div#nav li:hover ul,
  95. div#nav li li:hover ul,
  96. div#nav li li li:hover ul,
  97. div#nav li li li li:hover ul
  98. {display:block;}
  99.  
  100. <!--[if lt IE 7]>
  101. <style type="text/css" media="screen">
  102. #nav{float:none;}
  103. body{behavior:url(csshover.htc); font-size:100%;}
  104. #nav ul li{float:left; width: 100%;}
  105. #nav a{height:1%;font:normal 0.7em/1.4em arial, sans-serif;}
  106. </style>
  107. <![endif]-->
  108.  
  109.  
  110. <div id="nav-container" >
  111.  
  112. <div id="nav">
  113.  
  114. <ul><li><a href="http://www.honeymoonersreviewguide.com/index.php" class="align">Home</a></li></ul>
  115.  
  116. <ul><li><a href="http://www.honeymoonersreviewguide.com/planning/index.html" class="top_parent">Planning Tools</a>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/planning/your-perfect-honeymoon.html">Your Perfect Honeymoon QUIZ</a></li><li><a href="http://www.honeymoonersreviewguide.com/planning/timeline.html">Planning Timeline</a></li><li><a href="http://www.honeymoonersreviewguide.com/planning/budget-ideas.html">Budget Ideas &amp; Worksheet</a></li><li><a href="http://www.honeymoonersreviewguide.com/contests/free-honeymoon.html">WIN a Free Honeymoon</a></li><li><a href="http://www.honeymoonersreviewguide.com/planning/honeymoon-registry-tips.html">Registry Tips</a></li></ul></li></ul>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/destinations/index.html" class="top_parent">Destinations</a>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/destinations/top-10-honeymoon-hotspots.html">Top Honeymoon Destinations</a></li><li><a href="http://www.honeymoonersreviewguide.com/africa/index.html">Africa</a></li><li><a href="http://www.honeymoonersreviewguide.com/asia/index.html">Asia</a></li><li><a href="http://www.honeymoonersreviewguide.com/canada/index.html">Canada</a></li><li><a href="http://www.honeymoonersreviewguide.com/destinations/adventure.html">Adventure Locations</a></li></ul></li></ul>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/resorts/index.html" class="top_parent">Hotels</a>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/search.php">Hotel Finder - SEARCH!</a></li><li><a href="http://www.honeymoonersreviewguide.com/resorts/all-inclusive-honeymoons.html">All-inclusive Honeymoon Resorts</a></li><li><a href="http://www.honeymoonersreviewguide.com/resorts/private-islands.html">Private Island Resorts</a></li><li><a href="http://www.honeymoonersreviewguide.com/resorts/vacation-rentals.html">Vacation Rentals</a></li><li><a href="http://www.honeymoonersreviewguide.com/resorts/romantic-room.html">Booking the Perfect Room</a></li></ul></li></ul>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/resorts/packages.html" class="top_parent">Hot Packages</a></li></ul>
  117.  
  118. <ul><li><a href="http://www.honeymoonersreviewguide.com/travel-agents/index.html" class="top_parent">Book a Honeymoon</a></li></ul>
  119.  
  120. <ul><li><a href="http://www.honeymoonersreviewguide.com/cruises/index.html" class="top_parent">Cruises</a>
    <ul><li><a href="cruises/luxury-cruises.html">Luxury Cruise Honeymoons</a></li><li><a href="cruises/destination-weddings.html">Cruise Destination Weddings</a></li></ul></li></ul>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/destination-weddings/index.html" class="top_parent">Destination Weddings</a>
    <ul><li><a href="destination-weddings/wedding-locations.html">Destination Wedding Locations </a></li><li><a href="destination-weddings/styles-ideas.html">Wedding Styles and Ideas</a></li><li><a href="destination-weddings/top-locations.html">Best Wedding Destinations</a></li><li><a href="destination-weddings/celebrity.html">Celebrity Destination Weddings</a></li></ul></li></ul>
    <ul><li><a href="http://www.honeymoonersreviewguide.com/search/search.php" class="top_parent">Search</a></li></ul>
  121.  
  122. </div>
  123. </div>
Oct 7 '08 #1
0 1250

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

Similar topics

0
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ ....
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
2
by: Ellen Graves | last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1. Installing and running stored procedures is problematic. Stored procedures I have used for years on V7 on WinNT are now failing...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.