Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 76148

Half circle with CSS (border, outline only)

$
0
0

I'm trying to create a circle with CSS, which looks exactly like on the following picture:

enter image description here

...with only one div:

<div class="myCircle"></div>

and by using only CSS definitions. No SVG, WebGL, DirectX, [...] allowed.

I've tried to draw a full circle and fading half of it with another div, and it does work, but I'm looking for a more elegant alternative.


Viewing all articles
Browse latest Browse all 76148

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>