Quick Nav:  Online Store   |   Login | Register

Span ID's

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
koolworld
<50 Posts
Posts:40


02/16/2007 8:07 AM  
Hi John,

Just had a quick question regarding the ID's given to the spans: LinkLeft0, LinkLeft1, etc..

It's failing on XHTML validation as these IDs are being used more than once, is there any way around this?

Cheers, Dan.
John Mitchell
Posts:3478


02/16/2007 9:45 AM  
Oh, right that is a good point. In the 2.0 version of the Menu I corrected that for the Hover type menu by prefixing it with the ID of the menu instance.

I left it that way on the Tabs type though, because I had created that over two years ago and didn't want to break anyone's existing styling.

Also I don't think many people were using those span's so added a setting that keeps those span's from being rendered unless specifically wanted on the Hover type menu. LinkLeftSpan and/or LinkRightSpan have to be set to true before those spans are even rendered with the Hover type menu.

So, if you use the Hover type, you'll get output that is more compliant. It does require a little different styling though since the child items are embedded UL's where as the Tabs type is all one UL.

If you want, I can create a version for you that prefixes the MenuId to the Tabs type output of spans.

koolworld
<50 Posts
Posts:40


02/16/2007 10:36 AM  
Hi John, i've changed it to use the Hove type and it all validates properly now. One problem which is related to my last post is that the Parent tab is showing in the list and i am struggling to set it's CSS display style to none as the whole list then disappears.
koolworld
<50 Posts
Posts:40


02/16/2007 11:11 AM  

John, just to update you, i've managed to hide the parent level0 LI and keep the Level1 LI's visible so i've solved the problem i was having.

John Mitchell
Posts:3478


02/16/2007 11:15 AM  
Ok, I need to look at that code, I would not expect it to render the Parent too.

You should be able to target that specific list item with CSS. Something like:

#NavMenu ul li:first-child { display:none }

Send me an e-mail if you just want to get a fix in the code.
John Mitchell
Posts:3478


02/16/2007 11:16 AM  
Just saw your last post. Yes, I was thinking about using the Level0 selector, but was worried about that getting more than just that one.

But now it dawns on me that it is just one parent involved.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software