How do i evenly space my 5 pairs of elements, for a small screen width, in bootstap 3?

I have 5 pairs of controls that I want to have spaced evenly when the user's browser window is small (sm). I'm very close but need to find a way to either shrink the 4th pair of elements or grow (widen) the fifth pair. Right now it raps the data of the fifth pair on the line below, when the user's browser window is small. Any suggestions?

    <div class="row">
        <div class="form-group">
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-3">
                <span class="text-right detail-label-black">Year:</span>
                <asp:Label runat="server" ID="lblYear" class="detail-data-bold-black" />
            </div>
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">
                <span class="text-right detail-label-black">Make:</span>
                <asp:Label runat="server" ID="lblMake" class="detail-data-bold-black" />
            </div>
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">
                <span class="text-right detail-label-black">Model:</span>
                <asp:Label runat="server" ID="lblModel" class="detail-data-bold-black" />
            </div>
            <div class="col-xs-12 col-sm-3 col-md-2 col-lg-2">
                <span class="text-right detail-label-black">Mileage:</span>
                <asp:Label runat="server" ID="lblMileage" class="detail-data-bold-black" />
            </div>
            <div class="col-xs-12 col-sm-3 col-md-4 col-lg-3">
                <span class="text-right detail-label-black">VIN:</span>
                <asp:Label runat="server" ID="lblVIN" class="detail-data-bold-black" />
            </div>
        </div>
    </div>

Open in new window


col-sm problem
LVL 1
Michael SterlingWeb Applications DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
Have you tried making the 4th column a col-sm-2 and the 5th column and col-sm-4?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael SterlingWeb Applications DeveloperAuthor Commented:
yes. when i do that, the 4th pair wraps like the 5th pair.
0
David S.Commented:
I suggest you override the Bootstrap styles and write custom styles for that break-point. Set the widths of those 5 columns to "auto", give them "display:table-cell", and give "display:table" to their parent.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

käµfm³d 👽Commented:
You can nest rows in Bootstrap, so what if you create an outer row where the columns have a 60/40 split, say, and the first three fields go in the left column, and the remaining fields go in the right column. Within each of those columns, you define additional rows (1 per column). Within those rows, the max columns is still 12, so divide 12 by the number of fields you put in that column. Each of the fields will go into its own inner column.

You might need to play around with it, but 60/40 is probably a good starting point.
0
David S.Commented:
Somehow I doubt Bootstrap is intended to increase cases of divitis. A framework is supposed to be a help, not a limitation.
0
käµfm³d 👽Commented:
Hmmm...They saw fit to document it, so I guess "to each his own?"

; )
0
Michael SterlingWeb Applications DeveloperAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.