Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Ferrari 12 posts 84 karma points
    Apr 18, 2017 @ 22:26
    Sebastian Ferrari
    0

    Set background image, as element's style, using @media

    Hi All!,

    I'm pretty new in Umbraco, and I have a problem that I don't know if I can solve it using Umbraco.

    The thing is, I've 2 background images, one for mobile breakpoints and the other one for desktop breakpoints. I'm trying to figure out how to do this, if it is possible, using Umbraco, in a template for example. At CSS, I use to have @media declarations with the 2 backgrounds. But, inside template I can't load it because use @media attribute as inline styles is not permitted.

    Thanks in advance if anyone has a clue in how to achieve this.

    Sebastian

Please Sign in or register to post replies

Write your reply to:

Draft