SVG animation is not working on IE11

Only Microsoft Edge will support SVG CSS Transitions and Animation.. especially stroke-dasharray. Please see the Microsoft Developer Docs: https://dev.windows.com/en-us/microsoft-edge/platform/status/csstransitionsanimationsforsvgelements Allows CSS Transitions and Animations to apply to SVG elements. Unprefixed version: Microsoft Edge build 10240+ As you can see in my fork of your example. You were not seeing the loader spin due to not … Read more

Center a ‘div’ vertically in a % height ‘div’

This has been asked enough times here as well as all over the Internet. A quick search will bring you tons of results. Anyhow, my preferred way of doing this is to use display: table-cell; and vertical-align: middle;. See this page for an example. (Beware that this doesn’t work on Internet Explorer 6.)

How do I uncollapse a margin? [duplicate]

well you need something in between to “break” the collapsing. my first thought was to use a div with display:none set in between, but that doesn’t seem to work. so I tried: <div style=”overflow: hidden; height: 0px; width: 0px;”>.</div> which seems to do the job nicely (at least in firefox, don’t have internet explorer installed … Read more

Create leading dots in CSS

This is the best CSS-only solution I have found for this issue of dot leaders: http://www.w3.org/Style/Examples/007/leaders.en.html HTML <ul class=”leaders”> <li><span>Salmon Ravioli</span> <span>7.95</span></li> <li><span>Fried Calamari</span> <span>8.95</span></li> <li><span>Almond Prawn Cocktail</span> <span>7.95</span></li> <li><span>Bruschetta</span> <span>5.25</span></li> <li><span>Margherita Pizza</span> <span>10.95</span></li> </ul> CSS2/CSS3 ul.leaders { max-width: 40em; padding: 0; overflow-x: hidden; list-style: none } ul.leaders li:before { float: left; width: 0; white-space: … Read more

How to add a scrollbar to an HTML5 table?

If you have heading to your table columns and you don’t want to scroll those headings then this solution could help you: This solution needs thead and tbody tags inside table element. table.tableSection { display: table; width: 100%; } table.tableSection thead, table.tableSection tbody { float: left; width: 100%; } table.tableSection tbody { overflow: auto; height: … Read more

What is the best way to clear the CSS style “float”?

Update: In 2014, you should use a clearfix technique that utilized pseudo-elements, like the one mentioned by @RodrigoManguinho. This is the modern way of clearing floats. For an even more up to date method, see Nicholas Gallagher’s micro clearfix: /** * For modern browsers * 1. The space content is one way to avoid an … Read more

How to change the bootstrap primary color?

Bootstrap 5 (update 2021) The method is still the same for Bootstrap 5. https://codeply.com/p/iauLPArGqE Bootstrap 4 To change the primary, or any of the theme colors in Bootstrap 4 SASS, set the appropriate variables before importing bootstrap.scss. This allows your custom scss to override the !default values… $primary: purple; $danger: red; @import “bootstrap”; Demo: https://codeply.com/go/f5OmhIdre3 … Read more

How can I scale an image in a CSS sprite

2021 Update: Background size is supported by most major browser but if your mobile browsers doesn’t support it use zoom. You could use background-size, as its supported by most browsers (but not all http://caniuse.com/#search=background-size) background-size : 150% 150%; Or You can use a combo of zoom for webkit/blink/ie and transform:scale for Mozilla(-moz-) and old Opera(-o-) … Read more

Adjust list style image position?

Not really. Your padding is (probably) being applied to the list item, so will only affect the actual content within the list item. Using a combination of background and padding styles can create something that looks similar e.g. li { background: url(images/bullet.gif) no-repeat left top; /* <– change `left` & `top` too for extra control … Read more