View: Hover elements (like twitter)

  1. 10 years ago by sm0k1nggnu
    1. <!--
    2. These hover controls can be achieved with some simple CSS code, without any JavaScript. Simply style the <div> with the controls when its parent <div> is in a hover state. Here’s the code to hide and show the controls (using a <div> with the class “controls” inside a <div> with the class “message”):
    3. -->
    4.  
    5. .message .controls { display: none; }
    6. .message:hover .controls { display: block; }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1396"></script>

0 comment about "Hover elements (like twitter)"