45 lines
1.9 KiB
HTML
45 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>SVG border</title>
|
|
<meta data-hid="viewport" name="viewport" content="width=device-width,initial-scale=1" />
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<p>regular box with <code>border: 1px solid black;</code></p>
|
|
<div class="box">
|
|
<div class="icon">
|
|
<img src="sale.svg" width="100" height="80" />
|
|
</div>
|
|
<div class="text">
|
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
|
no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
|
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
|
dolore magna aliquyam erat, sed diam voluptua.
|
|
</div>
|
|
</div>
|
|
<p>same box but styled with <code>boder-image</code>. Of course, you can use PNG or even JPEG
|
|
to achieve the same but SVG keep their high quality, no matter how small or large the box is.</p>
|
|
<div class="box box--wobbly-border">
|
|
<div class="icon">
|
|
<img src="sale.svg" width="100" height="80" />
|
|
</div>
|
|
<div class="text">
|
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
|
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
|
|
no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
|
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
|
dolore magna aliquyam erat, sed diam voluptua.
|
|
</div>
|
|
</div>
|
|
|
|
<p>for reference, here's the original SVG used for styling:</p>
|
|
<img src="box.svg" />
|
|
</main>
|
|
</body>
|
|
</html> |