skip to Main Content

Css – Tailwind ObjectFit directives (like object-cover, object-fit, etc.) have no effect

Below is MWE. None of the directives have any effect on how the image span covers the parent container: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind Object Cover Example</title> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="bg-gray-100 flex…

VIEW QUESTION
Back To Top
Search