How to set up fixed width for ?

For Bootstrap 4.0: In Bootstrap 4.0.0 you cannot use the col-* classes reliably (works in Firefox, but not in Chrome). You need to use OhadR’s answer: For Bootstrap 3.0: With twitter bootstrap 3 use: class=”col-md-*” where * is a number of columns of width. For Bootstrap 2.0: With twitter bootstrap 2 use: class=”span*” where * is a number of columns of width. … Read more

Text-decoration: none not working

You have a block element (div) inside an inline element (a). This works in HTML 5, but not HTML 4. Thus also only browsers that actually support HTML 5. When browsers encounter invalid markup, they will try to fix it, but different browsers will do that in different ways, so the result varies. Some browsers … Read more

text-overflow: ellipsis not working

You need to have CSS overflow, width (or max-width), display, and white-space. http://jsfiddle.net/HerrSerker/kaJ3L/1/ Addendum If you want an overview of techniques to do line clamping (Multiline Overflow Ellipses), look at this CSS-Tricks page: https://css-tricks.com/line-clampin/ Addendum2 (May 2019)As this link claims, Firefox 68 will support -webkit-line-clamp (!)

Better way to set distance between flexbox items

Flexbox doesn’t have collapsing margins. Flexbox doesn’t have anything akin to border-spacing for tables (edit: CSS property gap fulfills this role in newer browsers, Can I use) Therefore achieving what you are asking for is a bit more difficult. In my experience, the “cleanest” way that doesn’t use :first-child/:last-child and works without any modification on flex-wrap:wrap is to set padding:5px on the container and margin:5px on the children. … Read more