Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I want to create a form in which I can add html elements in vertical and horizontal position, and those elements should be connected by lines. Fo example Please help me. Thanks.
About the lines: under what I wrote before add a div
<div style="width:1000px;border-top:solid 1px gray;position:absoulte;top:-40px;"></div>
add lines as needed. top:40px is only an example, fit the right px you need. If it does not work get back to me.
Add a comment
Use flex. for examle if you want to have 4 inputs in a row:
<div style="display:flex;justify-content:space-around"> <input style="flex-basis:22%"/> <input style="flex-basis:22%"/> <input style="flex-basis:22%"/> <input style="flex-basis:22%"/></div>
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.