Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline-block spacing with minified html #14401

Closed
epelc opened this issue Aug 15, 2014 · 3 comments
Closed

Inline-block spacing with minified html #14401

epelc opened this issue Aug 15, 2014 · 3 comments
Labels

Comments

@epelc
Copy link

epelc commented Aug 15, 2014

Hello when you have buttons in a row and you are minifying your html then they end up with no spacing on the right and left sides. You can add a marigin left/right of 2px to mimic the spacing. But this doesn't fix all elements because it also affects input groups and probably several other things. This also inst perfect even if you applied it to all the right elements because it leave an extra 2px on your first element.

Here is an example
inline block spacing

@cvrebert cvrebert added the css label Aug 15, 2014
@cvrebert
Copy link
Collaborator

This is a problem with your minifier, not with Bootstrap.
Try using the conservativeCollapse option or whatever the analogous option for your minifier is. (See also http://perfectionkills.com/experimenting-with-html-minifier/#collapse_whitespace )
Or alternatively, you'll need to add more custom CSS.
I don't think there's much we reasonably can/will do about this at the Bootstrap level.

@epelc
Copy link
Author

epelc commented Aug 15, 2014

Thank you I was using https://www.npmjs.org/package/gulp-minify-html which didn't have that option. I also didnt know what you would call an option like that or if it was possible. But I just switched to using https://www.npmjs.org/package/gulp-html-minifier which is a gulp wrapper for the minfier you linked. Anyways thank you very much this was very helpful and that minifier has a lot more options which is nice.

@cvrebert
Copy link
Collaborator

cvrebert commented Nov 9, 2015

X-Ref: #16163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants