X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Responsive CSS (https://forum.x-cart.com/showthread.php?t=69877)

poloplata 08-26-2014 03:17 PM

Responsive CSS
 
Where is the file to add @media CSS for phone devices

The @media (max-width:480px) does not affect the page on the Look and Feel > Custom CSS page

totaltec 08-26-2014 07:30 PM

Re: Responsive CSS
 
Its working for me. I went to Look and Feel -> Custom CSS, checked the box "Use custom css" and added the following:
Code:

@media (min-width: 480px) {
  #sidebar-first {
    padding-right: 60px;
    padding-left: 60px;
  }
}

It did what I expected, added 60px on both sides of the first menu section. Does this not work for you?

poloplata 08-26-2014 08:39 PM

Re: Responsive CSS
 
needed to put rules for max and min widths

works now

totaltec 08-26-2014 08:40 PM

Re: Responsive CSS
 
Glad to hear it!


All times are GMT -8. The time now is 11:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.