Comments (4)
Just Add this Additional CSS for bootstrap 4 support
/*=======================
Country Picker Start
======================*/
.bootstrap-select.countrypicker button.btn.dropdown-toggle {
position: absolute;
z-index: 999;
background: #fff;
width: 100%;
border: 1px solid #ced4da;
display: flex;
align-items: center;
justify-content: space-between;
}
.bootstrap-select.countrypicker button.btn.dropdown-toggle span.filter-option {
width:auto;
}
.bootstrap-select.countrypicker .dropdown-menu.open.show {
height: auto !important;
max-height: 300px !important;
width: 100%;
}
.bootstrap-select.countrypicker .dropdown-menu.open.show ul.dropdown-menu.inner {
max-height: 300px !important;
overflow: auto !important;
position: initial;
display: block;
}
.bootstrap-select.countrypicker .dropdown-menu.open.show ul.dropdown-menu.inner li {
border-bottom: 1px solid #e9e9e9;
padding: 10px;
}
.bootstrap-select.countrypicker .dropdown-menu.open.show ul.dropdown-menu.inner li a.option-with-flag {
display: flex;
align-items: center;
cursor: pointer;
text-decoration: none;
color: inherit;
}
/*=======================
Country Picker End
======================*/
from bootstrap-select-country.
Hello, i've to ask something. I already used bootstrap 4 and can't downgrade it just because using this bootstrap-select-country. The dropdown is appear but can't working to display all country. Please give me a suggestion. Thank you
from bootstrap-select-country.
@dandrew10 Sadly there is no boostrap 4 support at the moment. I also have no time at the moment to work on it.
from bootstrap-select-country.
.bootstrap-select.countrypicker button.btn.dropdown-toggle span.filter-option {
height:18px;
width:auto;
}
I've added this to my CSS to fix the text alignment. E.g. When "Afganistan" is selected, the g character used to be displayed half-cut.
from bootstrap-select-country.
Related Issues (16)
- Add new locale ? HOT 1
- Using bootstrap-select-country on Bootstrap 4 HOT 1
- Data-countries option
- Return Country name instead of Country Code HOT 3
- mdbootstrap
- Support the "placeholder" attribute HOT 3
- Make values AND names searchable
- Dependencies
- The country flag image is not showing up HOT 8
- how to configure to select some countries only? HOT 2
- Flags not being displayed if using latest version of each library. HOT 8
- change the code of the country selected
- demo page menu error
- Flags not showing in AdminLTE 2 theme?
- Option for data default with full country name? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-select-country.