开发者

How to style menu?

I have a dynamic menu with all inline style. I want to give some spacing before the menu item text on left side. If giving padding left style to DynamicM开发者_开发技巧enuStyle then whole cell affected not text inside cell. How to do it??

please reply...

Regards Girish


you can define an style like this

    .WithPadding{
        padding-left:5px;
    }

and add

    <StaticMenuItemStyle CssClass="WithPadding" />


If you need to give extra spacing before the text then padding is the right way. But when applying padding you have to take into consideration the width of the container also. When applying padding the total width of the container might change.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜