News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

CSS for mobile

Started by pm4698, October 09, 2014, 15:37:37 PM

Previous topic - Next topic

pm4698

Hello there,

I have my joomla 2.5.x and virtuemart 2.6.10 site ready with template overrides. Template is mobile responsive but in desktop mode i added some margins, paddings etc to add-to-cart button, quantity box and other stuff.

Now, i need to change css of this stuff in mobile view.

I tried opening components/com_virtuemart/assets/css/vmsite-ltr.css file and add something like this:

@media (max-width:420px;) {}

and inside those tags to add some specific css for those classes with !important statement, but it appears that i messed up the website because somehow, those css rules applied and at screens above 420px like desktop version.

Any ideas of how to do this, in order to css only mobile stuff?

Thank you in advance

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum