skip to Main Content

Html – Apply CSS style depending of tbody height

I have simple example that applies style when div height is less than 400px. <html> <head> <style> .card-container { container-type: size; container-name: sidebar; } .card-container { background: #ffe4e8; width: 200px; height: 100px; } @container sidebar (max-height: 400px) { .card-container div:first-child…

VIEW QUESTION

Html – CSS – Transformations

HTML <div class="buttonFrame"><div class="btn"></div></div> CSS .buttonFrame { position: relative; width: 55px; height: 20px; border-radius: 12px; border: 2px solid black; overflow: hidden; top: 30%; left: 45%; z-index: 100px; } .btn { border-radius: 12px; width: 0%; height: 0%; background: linear-gradient( 90deg, rgba(2,…

VIEW QUESTION

Tailwind CSS style Not applying

where the error is occurred? this is my end points: theme: { screens: { 'mobile-sm': '320px', 'mobile-md': '481px', 'tablet': '769px', 'desktop-sm': '1025px', 'desktop-md': '1201px' }, I need to apply style as, flex-col in the mobile view and flex-row in desktop…

VIEW QUESTION
Back To Top
Search