Prevent ASP.NET Menu from appearing in a new line
I've got a page with rows of image buttons representing various functionality.
I'd like to add aMenu
at the end of each row that will represent extra dynamic c开发者_JAVA技巧onfigurable actions.
How can I make the root menu item appear after the image buttons in the same row instead of appearing in the row/line below? I tried with:
.Menu {display: inline-block;}
but it doesn't really make any difference....
I've never used <asp:menu>
, but I just played around with one. Looks like it renders as an html <table>
by default, with each item contained in a <td style="white-space:nowrap;width:100%;">
.
The 100% width is probably forcing it to a new line. Change the style declaratively in design view, programmatically in the code-behind, or override it via a stylesheet.
精彩评论