Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Trouble centering menu in mobile mode
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Trouble centering menu in mobile mode
#46072
Trouble centering menu in mobile mode 10 Years, 5 Months ago Karma: 0
Hi,

I have a site where I used the suggestion from this post: www.ari-soft.com/ARI-Ext-Menu/40507-Trouble-with-centering-menu.html#40507 on how to center the menu. It worked great for desktop, but when I look at the site on a smartphone, the menu is left justified instead of centered. How do I get the menu to center on smartphones?

See: www.xeva.ca/contact-us

Thank you.
ljk
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#46075
Re:Trouble centering menu in mobile mode 10 Years, 5 Months ago Karma: 747
Hello,

The problem occurs because specific CSS rules are used by site template for mobile devices. Add the following CSS rule:

#topnav .ux-menu-container ul.ux-menu
{
display: inline-block !important;
}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47200
Re:Trouble centering menu in mobile mode 10 Years, 3 Months ago Karma: 0
Hi,

If I add the line you said above, then the background image vecomes very wide on mobile devices.

Is there anything else I can do to center the menu on mobile?

Thank you.
ljk
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#47202
Re:Trouble centering menu in mobile mode 10 Years, 3 Months ago Karma: 747
Hello,

Send an image please where we can see the problem.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47215
Re:Trouble centering menu in mobile mode 10 Years, 3 Months ago Karma: 0
Hi,

Here is the image with inline-block set:


Thank you for your help.
ljk
User Offline Click here to see the profile of this user
Last Edit: 2014/01/10 18:43 By ljk.
The administrator has disabled public write access.
 
#47217
Re:Trouble centering menu in mobile mode 10 Years, 3 Months ago Karma: 747
template.css file from site template contains the following CSS rules:

/* iPad [portrait + landscape] */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
#topnav .ux-menu-container ul.ux-menu {
display:block;
}
}
/* iPhone [portrait + landscape] */
@media only screen and (max-device-width: 480px) {
#topnav .ux-menu-container ul.ux-menu {
display:block;
}
}

which is defined "display: block" property instead of "display: inline-block" for mobile devices.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12