experiments
This commit is contained in:
parent
e887cc74d1
commit
d63f1f83d1
31
pad.html
Normal file
31
pad.html
Normal file
@ -0,0 +1,31 @@
|
||||
<style>
|
||||
.pad
|
||||
{
|
||||
position:relative;
|
||||
margin:50px;
|
||||
border-top:5px solid blue;
|
||||
}
|
||||
.pad::before, .pad::after
|
||||
{
|
||||
content: " ";
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
border: 5px solid #000;
|
||||
box-sizing: border-box;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.pad::before
|
||||
{
|
||||
left: -18px;
|
||||
}
|
||||
.pad::after
|
||||
{
|
||||
right:-18px;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
<div class="pad"></div>
|
||||
</div>
|
12
svg.html
Normal file
12
svg.html
Normal file
@ -0,0 +1,12 @@
|
||||
<svg preserveAspectRatio="xMinYMin meet" viewBox="0 0 100 100" style="width:100px; height:100%; background:yellow;">
|
||||
<defs>
|
||||
<symbol id="diamond">
|
||||
<g transform="rotate(45 10 10)">
|
||||
<rect width="20" height="20"></rect>
|
||||
</g>
|
||||
</symbol>
|
||||
</defs>
|
||||
<use href="#diamond" x="0" y="0" />
|
||||
<use href="#diamond" x="0" y="100%" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 397 B |
Loading…
Reference in New Issue
Block a user