Wednesday, September 11, 2024
HomeProgrammingSanding UI | CSS-Tips

Sanding UI | CSS-Tips


Jim hit a snag whereas engaged on a type. Putting labels subsequent to inputs is trivial with flexbox, certain, however what occurred in Jim’s case was a little bit of dead-clicking between the labels and radio buttons.

The difficulty? Not the markup, that’s all semantic and funky. Seems the hole he positioned between the weather is non-interactive. Is smart when you consider it, however irritating nonetheless as a result of it appears like a bug and seems like a bug despite the fact that there’s nothing unsuitable with the kinds.

The answer’s simple sufficient: padding alongside the within fringe of the enter extends its field dimensions, permitting the added house to stay interactive with visible spacing. Margin wouldn’t work because it’s akin to hole in that it pushes the aspect’s field as a substitute of increasing it.

I’m linking up Jim’s article as a result of it’s an ideal demonstration that CSS is able to engaging in the identical factor in some ways. It’s simple to fall into the lure of “single-solution” considering, however CSS doesn’t need something to do with that. It’ll as a substitute problem you to adapt towards open-minded methods, even perhaps defensive ones.


Direct Hyperlink →

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments