Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By akaserer on
hi
my client would like to override some css tags according to clients screenresolution.
so we would like to change load another css file if the resolution is smaller then 1024 pixel.
i found this tutorial
http://www.ilovecolors.com.ar/detect-screen-size-css-style/
can somebody tell us how to implement that.
or is there a way to write a module to load a specific css file if resolution is smaller then 1024 pixel?
thanks
andreas
Comments
i found a solution: i use the
i found a solution:
i use the austin (zen subtheme) theme and it includes a scripts.js file in where i entered my javascript code
after that it automatically loads the css file.
the only thing which could be improved is the "href="../sites/all/themes" as the link should start from drupal root directory (it is "/sc" not /).