Trifecta is a betting term in which the bettor must pick the first three winners in the correct sequence - this CSS button has three key features that separate it from the rest and make it a winner. Let's have a look:
It's well known that search engines give greater value to text links than images. Our CSS button allows for both a graphical image and text to be within the link. This gives us the best of both worlds - a nice graphical image swap for our viewers and text for the search engines. Yes, many other CSS buttons do this too, but read on.
This next one is big and is where many other CSS rollover buttons fail. Internet Explorer is unable to cache background images which causes the button to flicker as it's loaded. With the Trifecta button you don't have this problem and no preloading is necessary.
You know that having the title attribute in your href tags is a good thing for the search engines, right? You also know that having the alt attribute in your image tags is a good thing for search engines. And of course you know that the anchor text for a link is very important for search engines, but did you ever think you could get all three of these key elements in a single link? Well all 3 of these search engine friendly features are present in the Trifecta button - thus making the winning three-combo.
font-family: arial, helvetica, sans-serif;
background: url(overbtn.jpg) no-repeat;
* html a:hover
.cssnav a:hover img
<a href="http://www.URL.com"><img src="downbtn.jpg" alt="Alternative text" /><span>your keyword</span></a>
The CSS rollover Trifecta button allows us to swap images while still keeping text in our link, allowing us the best of both worlds - graphics for human viewers and text for the spiders. The Trifecta button also deals with IE's inability to cache background images. Lastly, the Trifecta button naturally encourages your keyword(s) to be placed three times within any given link.
Sign up to our monthly newsletter and keep up-to-date with what's new in UX and digital