3

I have created one Static block and added below content in :

<div class="hero-banner"><img src="{{media url='banner.jpg'}}" alt="" width="1251" height="343"></div>

Called this static block in CMS page

{{block class="Magento\\Cms\\Block\\Block" block_id="hero-banner"}}

How can I apply css on hero-banner class in PWA ?

I can add css only HTML tags.

asked Apr 11, 2019 at 8:12

1 Answer 1

0

I got solution :

You can add class in Static block like below code :

<div class="hero-banner">banner image</div>

Please use the code sample below in your imported CSS file .

:global(.hero-banner) {
 /*some css rules here*/
}
answered May 8, 2019 at 9:03

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.