is awesome! (when “width: 100%” not working)

-is-awesome!-(when--“width:-100%”-not-working)

Dudes.

Sometimes you want your to fit its “parent” with dynamic width and you do it like this:

 type="text" style="width: 100%">

But, that “parent” could be smaller then 150px (which is ‘s default min-width) and your goes beyond the borders.

The solution is simple — just add size="1" like this:

 type="text" size="1" style="width: 100%">

That’s all!

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
seven-priorities-for-project-managers-in-2023

Seven Priorities for Project Managers in 2023

Next Post
how-to-write-to-workflow-job-summary-from-a-github-action

How to Write to Workflow Job Summary from a GitHub Action

Related Posts