Extend backround-image via LESS - add rule to existing one

23 views Asked by At

I have problem with this code -

<div class="banner-wrapper" style="background-image:linear-gradient(0deg, #00000088 50%, #ffffff44 120%), url('/banners/banner.png');">
    <p>Some banner text</p>
</div>

It is generated by PHP, I can't make the rule in LESS, becouse i don't know URL of that picture, it's dynamic.

But i need the oportunity to change the linear-gradient property. Can I say image url like this <div class="banner-wrapper" style="url('/banners/banner.png');"></div> and extend it via LESS than?

0

There are 0 answers