Claudio
Claudio

Reputation: 143

Create a tailwindcss responsive grid with 2 colums: one fixed one stretched

I need to manage a tailwid grid with a column with fixed width, and another one with a stretched width.

Please show this sample: https://play.tailwindcss.com/jnWKg6hTyG

In the sample i can manage a fixed column for the button "Show" using w-12 in the button class, but the "Password" input does not stretch.

Any help?

Thanks

Upvotes: 0

Views: 2220

Answers (1)

Bilal
Bilal

Reputation: 21

Not an answer to your question but if grid isn't strict requirement then consider using flexbox for this.

IMHO flex is better in these situations. Example: https://play.tailwindcss.com/gcMrxejDQw

Upvotes: 2

Related Questions