Is anyone actually using css namespaces?

They cover completely different use cases. CSS namespaces are for applying CSS to XML documents that mix elements from different XML namespaces. e.g. so you can target <foo:p> and <bar:p> without confusion. SMACSS covers techniques for writing robust CSS that doesn’t interfere with other parts of the page. e.g. so that .title in your address … Read more

Can I have Multiple SVG images in a single file?

Reference: <svg alt=””> <use xlink:href=”shapes.svg#circle”></use> </svg> <svg alt=””> <use xlink:href=”shapes.svg#square”></use> </svg> <svg alt=””> <use xlink:href=”shapes.svg#triangle”></use> </svg> shapes.svg: <?xml version=”1.0″ encoding=”UTF-8″ ?> <!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN” “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd”> <svg xmlns=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink”> <symbol id=”circle”> <circle cx=”100″ cy=”50″ r=”40″ stroke=”black” stroke-width=”2″ fill=”red” /> </symbol> <symbol id=”square”> <rect width=”100″ height=”100″ style=”fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)” /> </symbol> <symbol id=”triangle”> <line x1=”50″ y1=”0″ … Read more

W3C validation with AngularJS directives

Strict w3c validation allows any data-* attributes, and any class. Directives can be applied to DOM elements with any of: <tag directive-name> <tag data-directive-name> (*) <tag x-directive-name> <tag directive_name> <tag x_directive_name> <tag data_directive_name> At least the data- one is fully W3C compliant (provided you declare HTML5 doctype). So the following code validates (the attribute name, … Read more

Div Not Center Using class=”center-block” in Bootstrap

Demo Fiddle You need to add the class text-center to the div with the id panel-body. Change your HTML to: <div class=”container”> <div class=”panel panel-default”> <div class=”panel-heading”>Hanoi Tower</div> <div class=”panel-body text-center”> <canvas id=”stage” class=”center-block” width=”400″ height=”220″ style=”border:1px black solid “></canvas> <div id=”ctrl” class=”center-block”> <label for=”numsel”>Disc Number:</label> <select id=”numsel”> <option value=”3″>3</option> <option value=”4″>4</option> <option value=”5″>5</option> <option … Read more

Are Flexbox and vh height units not compatible in IE11?

The issue isn’t vh units but min-height I found a semi-working CSS-only solution: min-height: 100vh; height: 100px; The extra height will enable IE to fill the screen vertically even if the content is not tall enough. The drawback is that IE will no longer wrap the content if it’s longer than the viewport. Since this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)