Pretty pointless if you ask me, just use JS for this.
However I wanted to see if I could do it without js. So here you go. Enjoy!
Uses FontAwesome because they are awesome.
Small margin issue you can see if you remove a alert from the middle of a stack. not sure how to work around it.