4 Replies Latest reply on Aug 24, 2013 5:35 AM by Valen90

    Adding a hyperlink to a css box

    Valen90

      Hello !

      I am trying to add a hyperlink to a css box so when clicked it redirects to a page: for example www.google.com

      Also in the box i have an image.

       

      This is the box:

      CSS

      #Box1 {float: left; background:url(butondesprenoi.jpg);background-size:contain; }

      #Box1:hover {background:url(butondesprenoi2.jpg);background-size:contain; transform:rotate(7deg);

      -ms-transform:rotate(7deg);

      -webkit-transform:rotate(7deg); }

       

      HTML

      <div id="Box1">

       

      <h2></h2>

       

      So how can i do it ?