How to indent between input fields (where red is marked)? I know that there is some kind of tag in html, which you can stupidly prescribe between elements, but I can't remember it. It doesn't even seem to be closing.
- <br> not to complicate .... - C.Raf.T
- Thanks !!! - Ravdan
- br is not the best solution - soledar10
- Here is an example jsfiddle.net/soledar10/kxvpduLu - soledar10
- Can you throw off your block markup? But as an option, I would add an additional class for the right or left input to make it a margin-lefr or margin-right, respectively, and if you need an indent at the bottom, I would do as easy_peasy wrote. - Andrew
|
2 answers
Add your input to the block, for example, someDiv
HTML:
<div class="someDiv"> <input type="text" id="1" /> <input type="text" id="2" /> <div> And write the CSS for the someDiv block:
.someDiv { margin-bottom: 20px; //Или любое значение, которое тебе необходимо } |
Standard margin properties do not help in resolving this issue?
margin-right: 10px - I want not to complicate - Ravdan
- Although it is possible with a margin. And do not tell me how to indent between the top two lines? - Ravdan
- margin-right: 10px; - Korsic
- And how to calculate the distance? From the center point of the semicircle or from the edges? - Ravdan 8:04 pm
- From the edges, I measured 22 px in the layout in Photoshop. Made margin-right: 22px, but it turned out much more. - Ravdan
|
