Bootstrap 3 Select Product And Price
Posted : admin On 10.08.2019My labels keep appearing above the selects. I want them all on the same line. Pls see the jsfiddle: http://jsfiddle.net/jjgelinas77/9nL9x/
- Buy Custom Select for Twitter Bootstrap 3 by LisaStoz on CodeCanyon. What is this? This is a jQuery plugin extending the functionality of Twitter Bootstrap 3. It allows you to turn a def.
- The pricing table template using Bootstrap. In this tutorial, a pricing table using Bootstrap and custom CSS is created where you may display the product name or some heading, its features with the flexible number of lines, prominent display of price within a circle for each product or service by using CSS3 etc.
Bootstrap example of eCommerce Product Detail using HTML, Javascript, jQuery, and CSS. Snippet by uthmansy.
5 Answers
There's a CSS rule in bootstrap that sets the width of .form-control
to 100% on small screen sizes. So even when it's floated, it will take the whole width and therefore start on a new line. Good news is you only need a couple lines of CSS to override it:
Hope this simplifies the problem for anyone still facing the issue! http://jsfiddle.net/c3m77ah6/2/
You have to wrap your label
around the select
. Like this:
And then add the following CSS:
Here is your updated fiddle: Updated Fiddle
SebsemilliaSebsemilliaThis problem is so recorrent that there is a Github project solving it
Place their CSS file right after the CSS from Select2
Then you can use the label along with the select
It does work if you use the latest bootstrap:@import url('http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css');
And please DON'T FORGET to make the column with result more than 768px. Form-inline works only if screen with more than 768px. (Just drag the column with a mouse a bit)
The issue was with css for
Vadim KirilchukVadim Kirilchukform-inline class with form-group will do the job like
demo : http://jsfiddle.net/9arahevn/2/
user889030user889030