all groups > asp.net webcontrols > february 2008 >
You're in the

asp.net webcontrols

group:

handling whitespace in the asp.net menu


handling whitespace in the asp.net menu koldskaal
2/20/2008 12:54:59 AM
asp.net webcontrols:
I have a asp.net menu in my project.

I want it to be possible to add menuitems with very long strings. At
the same time I dont want the menu to be wider than 200px. Therefore
the text in long strings must be displayed on multiple lines. This
seems to be something that the creators of the aspnet menu dont like,
because obviously in the HTML that is rendered every menu item has a
style like this:

<td style="white-space:nowrap;width:100%;">

I have tried to add this style to my stylesheet:

.celle
{
white-space:normal;
}

(and setting StaticMenuItemStyle CssClass="celle")

This behaves correctly in Firefox, but in IE7 everything after the
first line is invisible.


Does anyone know how to handle this?


Re: handling whitespace in the asp.net menu bjar@asb.dk
2/20/2008 1:05:00 AM
[quoted text, click to view]

I found out immideately after posting this.


AddThis Social Bookmark Button