I'm looking to get this construction, I know it's not possible but i'm looking for an alternative way.
@media all and (min-width: 480px) {
<meta name="viewport" content="width=device-width, initial-scale=1,
maximum-scale=1" />
}
So basically I need this <meta />
tag to only be active on screens larger then 480px
in width.
Can this be done with standard HTML or is there a jQuery sollution?
CSS won't be able to insert a META tag like this (you could target IE with IE specific comments but I doubt that helps you).
You can however inject this tag dynamically using JavaScript:
Here is a demo: http://jsfiddle.net/5GxNH/