Use of margins on elements with percentage size

I’m testing using elements with a percentage size relative to the parent container. For example, two inputs in a row layout group, the first input at 60% and the second at 40%.
In this simple way, the inputs line up next to each other as expected. But when applying any amount of pixels to the left and/or right margin, the second input jumps to the line below.
The configuration of size with percentage relative to the parent container should consider the margins, if any.

Wouldn’t this be the most appropriate way?

This topic was automatically closed after 14 days. New replies are no longer allowed.