N
N
Nick Murzin2015-06-10 00:59:53
css
Nick Murzin, 2015-06-10 00:59:53

Is it reasonable to use br?

When laying out such a structure, which of the options will be more correct and beautiful?
1. Use br to transfer - I read / heard somewhere that it is not recommended to use it at all and you can safely do without it.
2. Wrap each input + label row in a block element and the problem will sort of disappear by itself .. but a lot of different wrappers will multiply, not at all ok.
3. Use fixed widths - an extreme option, with fixed widths there may be problems with adaptability, etc., IMHO.
d7972b5ccf5b4223a0db4ee86b3de506.PNG
ps: sorry for the possibly holivar/stupid question, but I want to learn how to do everything according to feng shui and not worry about it :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-06-10
@R0s0maxa

<label class="checkbox checkbox--block">
    <input type="checkbox" />
    Some label
</label>

T
trevoga_su, 2015-06-10
@trevoga_su

but a bunch of different wrappers will breed, not at all ok.
where are the bunch of wrappers from? The title, list and each input are wrapped in a label. Or dl-dt-dd and also input to the label.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question