Quantcast
Channel: Unicode character for "X" cancel / close? - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Answer by Steve Bennett for Which font for CSS "x" close button?

$
0
0

This is probably pedantry, but so far no one has really given a solution "to create a close button using CSS only." only. Here you go:

#close:before {
  content: "✖";
  border: 1px solid gray;
  background-color:#eee;
  padding:0.5em;
  cursor: pointer;
}

http://codepen.io/anon/pen/VaWqYg


Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>