Quick Nav:  Online Store   |   Login | Register

Highly Annoying IE bug

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
llong
<100 Posts
Posts:96


03/27/2008 11:51 AM  

John,

As you probably know, IE has a tenancy to render white space when it shouldn't.  This is applies to spaces added after a tag which should be considered NULL but something take on p tag dimension or single pixel heights. 

I'm having this problem with the menu.  Despite make a template with all the square brackets back to back and all possible white spaces removed, the menu still adds space characters at the end of the last level item.  I count four spaces - perhaps one for each level.

Any chance of adding a whitespace filter to the final result?

Lance

llong
<100 Posts
Posts:96


03/27/2008 12:20 PM  

If this can't be fixed, for those experiencing weird spaces in their menus only in IE, try this:

Target all tags in the div "menu" for IE only:

* html #menu * {height:0;}

Now set the heights of the items individually such as:

#menu a,#menu a:visited{line-height:2em;display:block;}

 

John Mitchell
Posts:3084


03/27/2008 1:43 PM  

There is a feature in the menu that allows you to do replacements on the final markup.  You can try setting

Replacements=">\s+<="

which should remove any whitespace between elements.

 

UPDATE: Find the proper replacement below.

llong
<100 Posts
Posts:96


03/27/2008 3:48 PM  
This replacement worked well on a menu typed "Tabs" but ripped out code in the template driven menus.
Host Account
<100 Posts
Posts:83


03/27/2008 4:11 PM  
That's strange. I'll have to debug to figure out what is happening, but it should only get space between elements
Mark Townsend
<50 Posts
Posts:26


04/23/2008 11:06 PM  
Did you find a solution to this whitespace problem? I am experiencing the same problem in IE7. I tried using the suggested replacements, and my nice menus disappeared all together, mine are also template based.
John Mitchell
Posts:3084


04/24/2008 2:36 PM  

Sorry for dropping the ball on this one Lance.

After troubleshooting I see the error of my ways.  The replacement was finding the white space between elements and the closing elements and removing them all.

This is the proper way to do it.

Replacements=">\s+<=><"

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Highly Annoying IE bug



ActiveForums 3.7
Powered by: Snapsis Software