SVG Icons Template

What is a svg icons template How do you make a svg icons template? This script and codes were developed by Colm Hewson on 01 February 2022, Tuesday.

How do I make an svg icons template?
  1. SVG Icons Template Previews
  2. SVG Icons Template HTML Codes
  3. SVG Icons Template CSS Codes
SVG Icons Template Previews

SVG Icons Template HTML Codes

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>SVG Icons Template</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>
  <!-- Here be the container, and within that the SVG -->

<div class="container">
  
  <div class="svg-container">
  
  <svg version="2" xmlns="http://www.w3.org/2000/svg">
    
    <g id="triangle-bg">
      <polygon class="incident-icon-bg" points="75,10 140,120 10,120" />
    </g>
    
    <g id="the-thing">
      
    </g>
    
    <g id="triangle-outer">
    <polygon class="incident-icon" points="75,10 140,120 10,120" />
    <polygon class="incident-pointy-bit" points="55,120 95,120 75,150" />
    </g>
    
  </svg>
  
    </div>
    
</div>

<!-- CSS edge borders -->

<div class="top-x-border">
</div>

<div class="bottom-x-border">
</div>

<div class="left-y-border">
</div>

<div class="right-y-border">
</div>
  
  
</body>
</html>

SVG Icons Template CSS Codes

/* All of the structural CSS stuff here */
body {
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: #f1f1f1;
  z-index: 0;
}

.container {
  width: 200px;
  height: 200px;
  background: grey;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -100px;
  margin-left: -100px;
  box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.svg-container {
  width: 150px;
  height: 150px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -75px;
  margin-left: -75px;
}

.top-x-border {
  width: 100%;
  height: 1px;
  height: 1px;
  background: rgba(0, 255, 255, 0.5);
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -75px;
  left: 0px;
  z-index: 3;
}

.bottom-x-border {
  width: 100%;
  height: 1px;
  background: rgba(0, 255, 255, 0.5);
  display: block;
  position: absolute;
  top: 50%;
  margin-top: 75px;
  left: 0px;
  z-index: 3;
}

.left-y-border {
  width: 1px;
  height: 100%;
  background: rgba(0, 255, 255, 0.5);
  display: block;
  position: absolute;
  top: 0px;
  left: 50%;
  margin-left: -75px;
  z-index: 3;
}

.right-y-border {
  width: 1px;
  height: 100%;
  background: rgba(0, 255, 255, 0.5);
  display: block;
  position: absolute;
  top: 0px;
  left: 50%;
  margin-left: 75px;
  z-index: 3;
}

/* Here are the colours */
/* Here's the SVG CSS */
.incident-icon {
  fill: none;
  stroke: #e34c3a;
  stroke-width: 10px;
  stroke-linejoin: round;
}

.incident-icon-bg {
  fill: #f1f1f1;
  stroke: none;
}

.incident-pointy-bit {
  fill: #e34c3a;
}
Do you want hide your ip address?Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup.