function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakesh RRakesh R 

How i can get a banner from static resource into Style bundle of a lightning component.

Hello Professionals,
i was using <Style> tag in to lightning component for showing a banner pic but it is supporing the component which has API Version 39 not for the above. Please help me how i can add a banner pic into style bundle of lighting component. 
Below is the code which are not working for component which have API Version 40 or above.

<style type="text/css">
        .banner__content {
            background-image: url({!v.contentBanner.Thumbnail__c});
        }
        
        .news h2{
            color: #f58e92;
        }
        
        canvas{
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
        }
        
        .modal ul{
            padding: 10px 10px 10px 28px;
        }
    </style>

Please help me.
Thanks in Advanced