Solved

Navigation duplicates button in IE 6

Posted on 2010-08-13
10
203 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 42

Accepted Solution

by:
David S. earned 500 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
 

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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Tool to Build Android and iOS App 3 55
What about 192.168.1.0/28 3 31
Error in page 3 46
webpage layout breaks when expanding bootstrap collapse component 8 16
Read about why website design really matters in today's demanding market.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now