?
Solved

Navigation duplicates button in IE 6

Posted on 2010-08-13
10
Medium Priority
?
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 42

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 42

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 42

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 42

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
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.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

752 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