[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Navigation duplicates button in IE 6

Posted on 2010-08-13
10
Medium Priority
?
210 Views
Last Modified: 2012-05-10
Client has IE 6 and their company will not allow an upgrade.  Using IE 6, we are running into issues and I am sure it has to do with commenting.  The problem is that the Club Presidents button is being duplicated.  Any idea how to fix it?  

http://www.rotary6270.org/test.html
http://www.rotary6270.org/wide.css
<!--CLUB PRESIDENTS BUTTON -->
     <li><a href="club_presidents.html">Club Presidents</a><!--[if lte IE 6]>
  	<a href="club_presidents.html">Club Presidents
  	<table><tr><td>
 	<![endif]-->
       <ul><li><a href="checklist.html">Check List Calendar</a><li>
       </ul>
       <!--[if lte IE 6]>
   	</td></tr></table>
   	</a>
   	<![endif]-->
     </li>

Open in new window

0
Comment
Question by:nsitedesigns
  • 6
  • 4
10 Comments
 
LVL 43

Accepted Solution

by:
David S. earned 2000 total points
ID: 33433869
Try the following code.

P.S. Why do you keep using the conditional comments like that when they give you so many problems? Using them like that is an ugly hack anyway.
<!--CLUB PRESIDENTS BUTTON -->
     <li><a href="club_presidents.html">Club Presidents<!--[if gte IE 7]><!--></a><!--<![endif]-->
       <!--[if lte IE 6]><table><tr><td><![endif]-->
       <ul><li><a href="checklist.html">Check List Calendar</a><li>
       </ul>
       <!--[if lte IE 6]>
   	</td></tr></table>
   	</a>
   	<![endif]-->
     </li>

Open in new window

0
 

Author Comment

by:nsitedesigns
ID: 33433894
This site is a mess and has been since day one, years ago.  Someone else did the coding on the navigation and it was working ok for awhile until I had to add this button with a drop down. You are right, it is butt-ugly but I am so busy that I just never take the time to fix.  No excuses.  I will try you fix.  Back in a second.
0
 

Author Closing Comment

by:nsitedesigns
ID: 33433921
thanks for the quick fix!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:nsitedesigns
ID: 33446651
Turns out the "fix" did not fix the problem.  Still showing duplicate Club President's buttons for client.  She is not allowed to upgrade to higher version of IE.  I know - - I know.  Nothing I can do about it.

http://www.rotary6270.org/
http://www.rotary6270.org/wide.css
http://www.rotary6270.org/wide_ie.css
0
 
LVL 43

Expert Comment

by:David S.
ID: 33446860
That page does not have the change I suggested. It seems it somehow got reverted to how it was previously.
0
 

Author Comment

by:nsitedesigns
ID: 33446924
Ugh!  You are right.  Too many balls in the air this morning.  We tested it on Friday and it worked but I forgot to incorporate your coding into other pages.  My apologies!
0
 
LVL 43

Expert Comment

by:David S.
ID: 33447017
Are all of those pages really completely static?  Making changes like this would be a whole lot easier if you were using PHP includes or SSI to include common page parts, e.g. that menu, on each page.
0
 

Author Comment

by:nsitedesigns
ID: 33447092
I will do a find and replace.  I don't know PHP or SSI.  : (
0
 
LVL 43

Expert Comment

by:David S.
ID: 33448292
You only need to learn a very small amount PHP to use PHP includes and SSI is similarly easy to learn. In the long run, they are definitely worth using. (I recommend PHP because it can be used to do many more things than just this.)  For this site, it may not be worth the trouble to retrofit it, but the next time you make a new site, using either of them will definitely be worth it.

Here's a little tutorial for using PHP includes: http://www.joe2torials.com/view_tutorial.php?view=3

Here's information on SSI: http://en.wikipedia.org/wiki/Server_Side_Includes
0
 

Author Comment

by:nsitedesigns
ID: 33448432
Thanks Kravey!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question