I want to create a close button using CSS only.
I\'m sure I\'m not the first to do this, so does anyone know which font has an \'x\' the same width as height, so that it
Using modern browsers you can rotate a + sign:
.popupClose:before { content:'+'; } .popupClose { position:relative; float:right; right:10px; top:0px; padding:2px; cursor:pointer; margin:2px; color:grey; font-size:32pt; transform:rotate(45deg); }
then simply place the following html where you need: