skip to Main Content

Html – I have some dropdowns inside a section, and when the dropdown is expanded, the section that the dropdowns are inside does not expand to fit the text

https://codepen.io/buttadogg_/pen/WbeZvjg <section> <h1>Here’s The Basics!</h1> <div class="dropdowns"> <div class="dd1c"> <button class="dropdown dropdown1">Sydney's Public Transport & How To Use Them!</button> <img src="images/chevron-down.svg" alt="" class="dropdownarrow"> <div class="dd1cdrop ddcdrop"></div> </div> <div class="dd2c"> <button class="dropdown dropdown2">Finding a Doctor or Medical Service / OSHC</button> <img…

VIEW QUESTION

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
Back To Top
Search