Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

CSS Rule for centering the categories in the menu

Started by Mahomed Dawood, April 07, 2022, 02:03:33 AM

Previous topic - Next topic

Mahomed Dawood

Hi AbanteCart

Does anyone know how to center the menu categories , I cannot seem to find the css rule for this

See attachment

Basara

Hello.
Try this css
ul.categorymenu {
    text-align: center;
    display: inline-block !important;
}

Mahomed Dawood

Hi

This just seems to make the menu container a little bigger , it does not center align the categories inside the menu container

Basara

Hello.
Add one more
#categorymenu {
    text-align: center;
}
ul.categorymenu {
    display: inline-block !important;
}

Mahomed Dawood

Hi

this works well for a few categories, but the minute i add more it goes back to left aligned , please see attached image

second image looks perfect but has less categories

mejores

Hello,

They go to the left because there is not enough width on the right and that's why it creates two lines, try decreasing the spaces between menu and menu.

Greetings.
Si estas buscando las mejores ofertas, su busqueda a terminado, visite: https://mejores.info

Forum Rules Code of conduct
AbanteCart.com 2010 -