Media query missplaced?

Forum rules
Only administrators can post or move items here.
Post Reply

Media query missplaced?

Post by Bigge »

I am trying to add a media query. But if I do, the stylesheet gets corrupted.
The media query do not appear in the stylesheet, but as a attribute on "media" in the link tag (attached image).
This is strange or a bug.

(what i do, in a video:)
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Media query missplaced?

Post by calguy1000 »

Media queries can be used inside the contents of the stylesheet OR on the link tag.
If the media query is on the link tag, the browser will do the media query test to determine if it needs to load the stylesheet at all.

The Design Manager (just like cms 1.x) allows you to enter a media query for the link tag (that's what the media query tab is for).

If you want a media query inside your stylesheet... then it goes into the stylesheet contents itself.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.

[invalid] Re: Media query missplaced?

Post by Bigge »

OK, I misunderstood it.
I propose to add a clearer explanation in the help file.

Thank you for your answer!
Post Reply

Return to “Closed Issues”