6 Replies Latest reply on May 26, 2010 3:09 PM by Bravat

    Hover position

    Bravat Level 1

      I want to make hover images to be in the center. Tried command clear:both; and also text-align: center, but it does not work (When i put that way, picture is show all to the left (part of the image can not be seen)). Here is the code for hover:

       

      .thumbnail{ position: relative; z-index: 0; }

       

      .thumbnail:hover{ background-color: transparent; z-index: 50; }

       

      .thumbnail span{ /*CSS for enlarged image*/ position: absolute; background-color: lightyellow; padding: 5px; left: -1000px; border: 1px dashed gray; visibility: hidden; color: black; text-decoration: none; }

       

      .thumbnail span img{ /*CSS for enlarged image*/ border-width: 0; padding: 2px; }

       

      .thumbnail:hover span{ /*CSS for enlarged image on hover*/ visibility: visible; top: 125; left: 125px; }