how do you put a link to a div?

2

I have a link (href) to a text but I need to have the div so that when flying over the div, the hand appears when there is a link thanks in advance for your help!

<div class="seguros">
    <a href="seguros.html"> >>>> Seguros & Hipotecas <<<<  </a>

    <p class="oculta"><b><br>Hipoteca:</b> EURIBOR + 0,99% (1er año 1.99%), te damos el 100% del valor</p>
    <p class="oculta"><b>Seguro de baja para autónomos:</b> desde 25€/mes cobra la baja completa al 5º día con sólo presentar el parte de baja!</p>
    <p class="oculta"><b>Invierte tus ahorros:</b> rentabilidad media 5,5%, inversión garantizada, sin impuestos a partir del 5º año!</p>
</div>
    
asked by Basicmix 08.04.2018 в 19:49
source

1 answer

3

Since HTML5 you can include block elements within links, therefore, you can take the link to include the entire div. So that you do not put all the underlined text you can use the text-decoration: none property.

#link{
  color: black;
  text-decoration: none;
}
<a id="link" href="seguros.html">
  <div class="seguros">
      <h3> >>>> Seguros & Hipotecas <<<<  </h3>

      <p class="oculta"><b><br>Hipoteca:</b> EURIBOR + 0,99% (1er año 1.99%), te damos el 100% del valor</p>
      <p class="oculta"><b>Seguro de baja para autónomos:</b> desde 25€/mes cobra la baja completa al 5º día con sólo presentar el parte de baja!</p>
      <p class="oculta"><b>Invierte tus ahorros:</b> rentabilidad media 5,5%, inversión garantizada, sin impuestos a partir del 5º año!</p>
  </div>
</a>
    
answered by 08.04.2018 / 19:52
source