I'm having problem making form compact. What I mean when I say compact is, the width of the form grows depending on it's content, just like the table. Here's a demo.
As you can see, the table adjusts it's width depending on it's content, it doesn't occupy space on it's right side when it's not necessary. While form, even with few texts, occupy the space on the right side, it seems like it has a 100% width.I want to make the width of the form to grow depending on it's content. When the form has no content, it should have no width. How can i achieve it without making the form inline or inline-block?