[solved] cms_stylesheet and media conditions
Posted: Thu Mar 08, 2012 10:04 am
I want to use different stylesheets depending on browser width ("responsive design", sort of). As a test I added this inside my HEAD-tag:
{stylesheet name="mytestcss" media="screen and (min-width: 800px) and (max-width: 959px)"}
...which works fine! However, if I change "stylesheet" to the recommended "cms_stylesheet", the media conditions are ignored and mytestcss is used for all widths. Anyone knows why? I'm using CMSMS v.1.10.3 (I know about bug #6647, but that is fixed in v.1.10, right?)
Cheers /ulf
{stylesheet name="mytestcss" media="screen and (min-width: 800px) and (max-width: 959px)"}
...which works fine! However, if I change "stylesheet" to the recommended "cms_stylesheet", the media conditions are ignored and mytestcss is used for all widths. Anyone knows why? I'm using CMSMS v.1.10.3 (I know about bug #6647, but that is fixed in v.1.10, right?)
Cheers /ulf