Is there any way to add a 5th breakpont to 4 that already exist? Unfortunaetly, 4 is not enough for a project we currenty work on. the idea was to create a new break point screen-hd, which is more than 1400px. Is there easy way to do it?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
I think it's a good practice to grab the less files of bootstrap and just produce a new CSS in the way you need. The first approach is to use variables.less file, that file contains usually all that you need.
For what you need to customize there are many variables, for example you can change the number of columns altering the variable
grid-columns
and also change the breakpoints.https://github.com/twbs/bootstrap/blob/master/less/variables.less#L281-L332
It's also good to get familiar with CSS preprocessors as less and sass, they are becoming a standard these days.
See also Twitter Bootstrap Customization Best Practices [closed]
Good luck!
I use this in my project:
you can create a custom css file and customize your columns as follows:
For your case you have to use grid-five
the html is like this:
This would in no way affect the default bootstrap grid system so you are safe. Keep in mine that grid-seven and grid-five are classes I created myself so you can create your own classes.
grid7, grid-5, grid5 grid-7
or just use the one I used