OH NO! Broke my IE 6 Code

This is a discussion on "OH NO! Broke my IE 6 Code" within the Web Page Design section. This forum, and the thread "OH NO! Broke my IE 6 Code are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 11th, 2007, 15:11
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
OH NO! Broke my IE 6 Code

Right, the other day I was trying to get my site voodoochilli.net html validated. In the process of getting the code to be valid, I have somehow messed up the navigation on IE 6!
I think I moved some <li> and <ul> tags about but I cant remeber which ones!

Heres the code:


Code: Select all
<ul>
  
      <li><a class="hide" href="http://www.voodoochilli.net/">Home</a>
    
          <!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/">Home
<table><tr><td>
<![endif]-->
          <ul>
            <li><a href="http://www.voodoochilli.net" title="Home">Home</a></li>
            <li><a href="http://www.voodoochilli.net/tutorials.php" title="Tutorial">Tutorials</a></li>
            <li><a href="http://www.voodoochilli.net/about.php" title="About">About</a></li>
            <li><a href="http://www.voodoochilli.net/contact.php" title="Contact">Contact</a></li>
            <li><a href="http://www.voodoochilli.net/tag-cloud.php" title="Popular Tags">Popular Tags</a></li>
             <li><a href="http://www.voodoochilli.net/reviews.php" title="Reviews">Reviews</a></li>
             <li><a href="http://www.voodoochilli.net/statistics.php" title="Statistics">Statistics</a></li>
        </ul>
    </li>
  </ul>
    <ul>
      <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
      <li>
       <a  class="hide" href="http://www.voodoochilli.net/showCategories.php">Artwork</a>
     <!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/showCategories.php">Artwork
<table><tr><td>
<![endif]-->
    <ul>
    
      <li><a title="Jewelry" href="http://www.voodoochilli.net/showImages.php?cat=Jewelry">Jewelry</a></li>
                    <li><a title="3D Graphics" href="http://www.voodoochilli.net/showImages.php?cat=3D Graphics">3D Graphics</a></li>
                    <li><a title="Fine Art" href="http://www.voodoochilli.net/showImages.php?cat=Fine Art">Fine Art</a></li>
                    <li><a title="Printmaking" href="http://www.voodoochilli.net/showImages.php?cat=Printmaking">Printmaking</a></li>
                    <li><a title="Graphic Design" href="http://www.voodoochilli.net/showImages.php?cat=Graphic Design">Graphic Design</a></li>
                    <li><a title="Illustration" href="http://www.voodoochilli.net/showImages.php?cat=Illustration">Illustration</a></li>
                    <li><a title="Photography" href="http://www.voodoochilli.net/showImages.php?cat=Photography">Photography</a></li>
                    <li><a title="Mixed Media" href="http://www.voodoochilli.net/showImages.php?cat=Mixed Media">Mixed Media</a></li>
                    <li><a title="Product Design" href="http://www.voodoochilli.net/showImages.php?cat=Product Design">Product Design</a></li>
                    <li><a title="Collage and Montage" href="http://www.voodoochilli.net/showImages.php?cat=Collage and Montage">Collage and Montage</a></li>
                    <li><a title="Drawing" href="http://www.voodoochilli.net/showImages.php?cat=Drawing">Drawing</a></li>
                    <li><a title="Digital Art" href="http://www.voodoochilli.net/showImages.php?cat=Digital Art">Digital Art</a></li>
                    <li><a title="3D Design and Crafts" href="http://www.voodoochilli.net/showImages.php?cat=3D Design and Crafts">3D Design and Crafts</a></li>
                    <li><a title="Web Design" href="http://www.voodoochilli.net/showImages.php?cat=Web Design">Web Design</a></li>
                    <li><a title="Ceramics" href="http://www.voodoochilli.net/showImages.php?cat=Ceramics">Ceramics</a></li>
                    </ul>
  </li>
</ul>

    
    <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
    


<ul>
  <li><a class="hide" href="http://www.voodoochilli.net/artists.php">Members</a><!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/artists.php">Members
<table><tr><td>
<![endif]-->
    <ul>
      <li><a href="http://www.voodoochilli.net/artists.php" title="Artist List">Artist List</a></li>
      <li><a href="http://www.voodoochilli.net/users/login.php" title="Login">Login</a></li>
      <li><a href="http://www.voodoochilli.net/register.php" title="Register">Register</a></li>
      <li><a href="http://www.voodoochilli.net/image-of-the-month.php" title="Image of the month">I.O.T.M</a></li>
      <li><a href="http://www.voodoochilli.net/users/threads.php" title="Forum">Forum</a></li>
      <li><a href="http://www.voodoochilli.net/users/forum_guest.php" title="Forum - Guest Login">Forum - Guest</a></li>
      <li><a href="http://www.voodoochilli.net/latest-blogs.php" title="Latest Blogs">Latest Blogs</a></li>    
      <li><a href="http://www.voodoochilli.net/site-faves.php" title="Recent Faves">+ Recent Faves</a></li>    
    </ul>
    <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

  </li>
</ul>
<ul><li><a class="hide" href="http://www.voodoochilli.net/site-search.php">Search</a>      <!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/site-search.php">Search
<table><tr><td>
<![endif]-->
      <ul>
        <li><a href="http://www.voodoochilli.net/site-search.php" title="Search">Site Search</a></li>
        <li><a href="http://www.voodoochilli.net/artists.php#search" title="Artist Search">Artist Search</a></li>
        <li><a href="image-search.php" title="Image Search">Image Search</a></li>
        <li><a href="http://www.voodoochilli.net/tag-cloud.php" title="Popular Tags">Popular Tags</a></li>
      </ul>
      <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
  </li>
</ul>
<ul>
  <li >
   <a class="hide" href="http://www.voodoochilli.net/donate.php">Donate</a>
        <!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/donate.php">Donate
<table><tr><td>
<![endif]-->
    <ul>
      <li><a href="http://www.voodoochilli.net/donate.php" title="Donate">Donate</a></li>
      <li><a href="http://www.voodoochilli.net/download-software.php" title="Downlaod Software">Download</a></li>
      </ul>

  </li>
</ul>

      <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
Any ideas?

Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 11th, 2007, 15:33
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

That looks fine...

Is it the css that's messing it up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 11th, 2007, 15:35
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

I dont think so as I havent changed the CSS in ages. Also it validates.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 11th, 2007, 15:40
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Ok.. I went to IE 6 and I think I see it.
In this code:
Code: Select all
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
    


<ul>
  <li><a class="hide" href="http://www.voodoochilli.net/artists.php">Members</a><!--[if lte IE 6]>
Move the <ul> in red above the If statement

Code: Select all
<ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
    
  <li><a class="hide" href="http://www.voodoochilli.net/artists.php">Members</a><!--[if lte IE 6]>
If that fixes it you'll have to do it to Search and donate as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 11th, 2007, 15:50
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

No sorry, didnt work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 11th, 2007, 15:57
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

ok.. well is this an extra if statement in red?
Code: Select all
  <ul> 
    <!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
    


<ul>
  <li><a class="hide" href="http://www.voodoochilli.net/artists.php">Members</a>
<!--[if lte IE 6]>
 <a href="http://www.voodoochilli.net/artists.php">Members
<table><tr><td>
<![endif]-->
    <ul>
P.S. only working on the Members button at this point..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 11th, 2007, 17:13
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

nope :blowup:

If I remember correctly, the code was invalid when working. so i think looking at it logicaly isnt going to help...

I HATE IE 6!!!!!


thank you for helping so far.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 11th, 2007, 20:41
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Yea Voodoo I've got the same problem on one of my sites. IE6 adds space that you can't seem to get rid of when you use lists correctly. Or at least I haven't managed.

Sorry I can't help, just thought I'd share my anger and frustration!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 12th, 2007, 09:58
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Yeah its annoying cant wait until all the old timers still running windows 95 decide to press the update button. Mind you IE 7 isnt perfect either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 12th, 2007, 10:02
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

But it is a massive improvement on its predecessor. It's like going from a rover 25 to ferarri(sp?). Remember even firefox has its problems.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jul 12th, 2007, 10:05
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Wow...it deleted half my post when I clicked post!

Voodoo,

have just sorted my problem...see if the fix works for you.

My lists are nested like this:

Code: Select all
<ul>
     <li><a href="training_intro.html" class="current">Training</a></li>
     <li>
          <ul class="navul">
               <li><a class="current" href="nebosh.html">NEBOSH</a></li>
               <li><a href="iosh.html">IOSH</a></li>
               <li><a href="fsa.html">Fire Safety</a></li>
               <li><a href="bitesize.html">Bitesize</a></li>
          </ul>
      </li>                    
      <li><a href="consultancy_intro.html">Consultancy</a></li>
      <li><a href="partners.html">Partners</a></li>
</ul>
My problem was that there was about 10px of space between Training and NEBOSH. I fixed it by adding this code to the CSS. If your problems similar give it a try.

Code: Select all
li    {_height: 0;
}

Last edited by 1840dsgn; Jul 12th, 2007 at 10:09.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jul 12th, 2007, 10:07
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,708
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: OH NO! Broke my IE 6 Code

Not sure it will help but I get an error on line 100. See attached.

Stew
Attached Images
File Type: png Untitled-2.png (66.0 KB, 21 views)
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jul 12th, 2007, 10:17
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Its ok I got it sorted, but thatks. What did I do? Well I just randomly (well almost) moved tags around until it worked. Typical!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Jul 12th, 2007, 10:18
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

lol...thats the way to go!

glad you got it sorted.

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Jul 12th, 2007, 17:15
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: OH NO! Broke my IE 6 Code

The conditional comment needs to go in the <head> tags. Not the body. Didn't think you could use them like that. of course I have been wrong before.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Jul 12th, 2007, 17:20
Reputable Member
Join Date: Jun 2007
Location: UK
Age: 29
Posts: 172
Thanks: 0
Thanked 0 Times in 0 Posts
Re: OH NO! Broke my IE 6 Code

Yeah you can use them there. You can use them anywhere pretty much as its ignored by other browsers.The navigation code has to be in the body to work in this case.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Jul 12th, 2007, 19:17
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: OH NO! Broke my IE 6 Code

Well that is handy to know =). Learn something every day!
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!