Solved

Navigation duplicates button in IE 6

Posted on 2010-08-13
10
202 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

746 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

10 Experts available now in Live!

Get 1:1 Help Now