skip to Main Content

How to render inline svg element with TailwindCSS

I've defined a background image in tailwind.config.ts called hero: backgroundImage: { hero: `url('data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E')`, }, I tried using it in global.css like this: .fill-grain { @apply before:bg-hero; }…

VIEW QUESTION

Css – Bootstrap modal backdrop not closing

I have a bootstrap modal and when I click submit, the modal still doesn't close I have an editform outside of the modal <EditForm Model="newCategoryType" OnValidSubmit="HandleCreate"> <DataAnnotationsValidator /> <ValidationSummary /> <div class="modal fade bd-example-modal-lg" id="AddCategoryType" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true"> <div…

VIEW QUESTION
Back To Top
Search