css3 - X close button only using css -


how make cross (x) in css3, use close button ?

i've been searching since long time, cannot found how.... when @ source code on website using it, there's weird make code take unusable.

the x button want : http://tympanus.net/tutorials/thumbnailgridexpandingpreview/

when click image, cross on right.

i think great if can post simple universal css code make simple x cross in css3

thx

main point looking is

tag-remove:before { content: 'x'; // here x(cross) sign. color: #fff; font-weight: 300; font-family: arial, sans-serif; } 

remaings can make easily.
edit:

<!doctype html> <html> <head> <style>  #mdiv { width:25px; height:25px; background-color:red; border:1px solid black; } .mdiv { height:25px; width:2px; margin-left:12px; background-color:black; transform: rotate(45deg); -ms-transform: rotate(45deg); /* ie 9 */ -webkit-transform: rotate(45deg); /* safari , chrome */ z-index:1;  } .md { height:25px; width:2px;  background-color:black; transform: rotate(90deg); -ms-transform: rotate(90deg); /* ie 9 */ -webkit-transform: rotate(90deg); /* safari , chrome */ z-index:2;  } </style> </head> <body>  <div id="mdiv" > <div class="mdiv"> <div class="md"> </div> </div>  <div>  </body> 


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -