1.You could add a hyperlink to the entire div like in the next example (razor view equivalent):
@{
string urlDetails = Url.Content(string.Format("~/Advert/AdvertDetails /?id={0}", x.id));
<div class="Advert" onclick="location.href='@urlDetails';" style="cursor: pointer;">
}
</div>
2.And/or you could add the hyperlink to an existing info, like Title:
@{
string urlDetails = Url.Content(string.Format("~/Advert/AdvertDetails /?id={0}", x.id));
<a href="@urlDetails"><span>@x.Title</span></a>
}