A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

auto center menus

View: New views
2 Messages — Rating Filter:   Alert me  

auto center menus

by Pedro A. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi people,

Wondering if you have any ideia how to center CSS based menus, depending on the number of menus. This need is due to various user roles with diferent number of menus available for each user type.

My style is based on simplicity and my menu displayer is "net.sf.navigator.displayer.CSSListMenuDisplayer" using the struts-menu-2.4.2

My nav CSS file is based on this demo http://demo.raibledesigns.com/struts-menu/cssVertical.jsp

Thks,

Pedro A.

Re: auto center menus

by Matt Raible-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should be able to use text-align on one of the menu li's - something like:

#menuId li { text-align: center}

Hope this helps,

Matt

On 10/13/06, Pedro A. <pedro.andrade@...> wrote:

>
> Hi people,
>
> Wondering if you have any ideia how to center CSS based menus, depending on
> the number of menus. This need is due to various user roles with diferent
> number of menus available for each user type.
>
> My style is based on simplicity and my menu displayer is
> "net.sf.navigator.displayer.CSSListMenuDisplayer" using the
> struts-menu-2.4.2
>
> My nav CSS file is based on this demo
> http://demo.raibledesigns.com/struts-menu/cssVertical.jsp
> http://demo.raibledesigns.com/struts-menu/cssVertical.jsp
>
> Thks,
>
> Pedro A.
> --
> View this message in context: http://www.nabble.com/auto-center-menus-tf2436284s2369.html#a6793515
> Sent from the AppFuse CSS mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...