Domanda

I have a silly question about Twitter Bootstrap. I want to create a form like this:

this
(source: vertex42.com)

I want this to, so that printing is easy and looks better in paper than the normal forms.

Is there a way of doing this other than using tables?

È stato utile?

Soluzione

Yes. The way this is usually done is by using divs as the table rows and columns. Take a look at the bootstrap docs at getbootstrap.com, but in general you probably want something like this:

<div class="row">
    <div class="row-sm-6"> First column, first row </div>
    <div class="row-sm-6"> Second column, first row </div>
</div>
<div class="row">
    <div class="row-sm-4"> First column, second row </div>
    <div class="row-sm-4"> Second column, second row </div>
    <div class="row-sm-4"> Third column, second row </div>
</div>

The question is a bit vague too. What exactly are you having trouble with? If you're having trouble with particular styling issues that isnt covered by standard bootstrap classes you should let us know and we can help you figure out those more specifically.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top