TEW-0x00/roundedcorners/index.html
surtur ad9b418570
All checks were successful
continuous-integration/drone/push Build is passing
moved script ref to header with defer
...in the remaining files
2020-04-01 20:08:53 +02:00

56 lines
2.6 KiB
HTML

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>rounded corners - tew-0x00</title>
<meta name="description" content="round corners - tew-0x00">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="/scripts/prism.js"></script>
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/prism.css" data-noprefix/>
</head>
<body>
<header>
<div id="divlogoimg">
<img class="logoimg" src="/media/logo.png">
</div>
</header>
<h3 class="title">rounded corners</h3>
<div id="divsection">
<p>Rounded corners is what we call the corners when they appearwell..rounded!<br>This functionality, if I may call it that, is accessed via a css property <code class="language-css">border-radius</code> that allows us to <q>give any element rounded corners</q>, thus allowing us to thoughroughly shape the desired element.</p>
<p>Below is a <code class="language-html">div</code> element styled with a background colour and border of different colour.</p>
<div id=divroundedcorners></div>
<div class="divcodeblock">
<pre><code class="language-css">#divroundedcorners {
background-color: lightgreen;
border-radius: 7px;
padding: 5px;
min-height: 100px;
margin: 0 3em;
}</code></pre>
</div>
<p>In case we only want to <i>cut one corner</i>, we simply need to set the remaining corners to 0, like so:</p>
<div id=divroundonecorner></div>
<div class="divcodeblock">
<pre><code class="language-css">#divroundonecorner {
background-color: lightskyblue;
border-radius: 0 27px 0 0;
padding: 5px;
min-height: 100px;
margin: 0 3em;
}</code></pre>
</div>
</div>
<footer class="copyright">
&copy; 2020 <a href="https://git.dotya.ml/wanderer" target="_blank">wanderer</a>
· <a href="https://tew0x00.dotya.ml/">tew-0x00</a>
· WTFPL<br>
<a href="https://git.dotya.ml/wanderer/TEW-0x00" target="_blank" title="page source">source</a>
</footer>
</body>
</html>