cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div class="container">
		<a><svg height="150" width="150"> 
			<!-- First SVG path (i.e. artwork) -->
			<circle cx="75" cy="75" fill="lightgrey" r="50"></circle>
			<!-- 2nd named SVG path, used for both selected and hover states -->
			<circle id="outline" class="deselected" cx="75" cy="75" fill="white" fill-opacity=".01" r="50" stroke-width="2"></circle></
		<button class="button blue" onclick="toggleSelection()">Select/Deselect SVG</button>
  <p><i>n.b. Move pointer over SVG to trigger hover state</i></p>

              /*SVG styling*/

circle#outline {
	transition: all 0.25s;
circle#outline:hover {
	stroke: yellow;
	stroke-opacity: 1;
#outline.deselected {
	stroke-opacity: .01;
#outline.selected {
	stroke: black;

/*button styling*/

.center {
	text-align: center;
.button {
	background-color: rgb(14, 131, 205);
	border: 0;
	display: inline-block;
	cursor: pointer;
	color: #ffffff;
	font-family: Arial;
	font-size: 17px;
	padding: 16px 31px;
	text-decoration: none;
.button:hover {
	background-color: rgba(14, 131, 205, .9);
.button:active {
	position: relative;
	top: 1px;
.container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
*:focus {
	outline: none
p {
  font-family: Arial;
              function toggleSelection() {
  var myButtonClasses = document.getElementById("outline").classList;

  if (myButtonClasses.contains("selected")) {
  } else {
    if (myButtonClasses.contains("deselected")) {
  } else {
Loading ..................