Design and CSS styles
Version 4.x > Design and CSS styles > Wrapping CMSListMenu in div tags. View modes: 
User avatar
Member
Member
J - 7/22/2009 10:29:49 PM
   
Wrapping CMSListMenu in div tags.
I'm using a cmslist control for a side nav. I need to wrap this control in a div tag around the <ul> as I have particular css requirements but if there are to items the div should not be displayed. Unfortunatly there's no contentbefore or content after properties. Has any one got any other stratiegies for this?

I've tried this method

protected override void OnLoad(EventArgs e)
{
SideNav.RenderedHTML = "<div>test</div>";
}

but that doesn't change the display.

any ideas?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/24/2009 3:27:50 AM
   
RE:Wrapping CMSListMenu in div tags.
Hello,

Could you please check the following thread? The described approach could solve your issue.

http://devnet.kentico.com/Forums.aspx?ForumID=20&Thread=00004964

Best Regards,
Boris Pocatko