Make table cells square

New answer : To make the table cells square, you can use the aspect-ratio property on a div inside the td element. Like this : table { width: 90%; } td { width: 33.33%; position: relative; } td .content { aspect-ratio: 1 / 1 ; background: gold; } <table> <tr> <td><div class=”content”>1</div></td> <td><div class=”content”>1</div></td> <td><div … Read more

CSS Circle with border

You forgot to set the width of the border! Change border: red; to border:1px solid red; Here the full code to get the circle: .circle { background-color:#fff; border:1px solid red; height:100px; border-radius:50%; -moz-border-radius:50%; -webkit-border-radius:50%; width:100px; } <div class=”circle”></div>

Invert rounded corner in CSS?

In modern browsers, you can use mask-image: #aux-container { width: 100px; height: 100px; background: #f00; -webkit-mask-image: radial-gradient(circle 10px at 0 0, transparent 0, transparent 20px, black 21px); } <div id=”aux-container”></div> http://jsbin.com/eViJexO/1/ Additionally, take a look at http://www.html5rocks.com/en/tutorials/masking/adobe/, which describes how to achieve similar result using mask-box-image.

Circular percent progress bar

Considering the shape of the progress bar (rounded end/start) I would suggest using SVG. DEMO: Radial progress bar In the following example, the progress is animated with the stroke-dasarray attribute and the % numbers are incremented with jQuery: var count = $((‘#count’)); $({ Counter: 0 }).animate({ Counter: count.text() }, { duration: 5000, easing: ‘linear’, step: … Read more

CSS3 Transform Skew One Side

Try this: To unskew the image use a nested div for the image and give it the opposite skew value. So if you had 20deg on the parent then you can give the nested (image) div a skew value of -20deg. .container { overflow: hidden; } #parallelogram { width: 150px; height: 100px; margin: 0 0 … Read more