Quantcast
Viewing all articles
Browse latest Browse all 34

Re: hyperlinks within css

I just wouldn't do it this way. Sorry.

 

HTML

<div class="packageqty">

<a target="_blank" href="dozentraditionalcookies.html">12 cookies $10</a>

</div>

 

CSS

.packageqty a {

display:block;

height:50px;

}

 

It's much cleaner than wrapping a div with an anchor which is just weird even if it validates in HTML5.


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>