Search notes:

CSS: Draw a circle

Note the transform property.
<!doctype html>

<style>
body {
   margin: 0;
   background: linear-gradient(10deg, AliceBlue, DeepSkyBlue);
   height: 100vh;
}

.circle {
   position: absolute;
   width: 50px;
   height: 50px;
   background: blue;
   border-radius: 50%;
   transform: translate(-25px, -25px);
}
</style>

<div class='circle' style='left:   0px; top:   0px'></div>
<div class='circle' style='left: 500px; top: 200px'></div>
<div class='circle' style='left: 140px; top: 240px'></div>
<div class='circle' style='left: 240px; top: 360px'></div>
<div class='circle' style='left: 300px; top:  60px'></div>

<div class='circle' style='left: 200px; top: 200px'></div>
<div class='circle' style='left: 300px; top: 300px'></div>

<div style='position: absolute; border: 1px solid navy; left: 200px; top: 200px; width: 100px; height: 100px;background-color: rgba(250, 250, 250, 0.3);'></div>
Github repository about-css, path: /examples/circle.html

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1788594259, '216.73.216.30', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/CSS/examples/circle(64): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51