I'm trying to have a page with multiple amazon products which are each within their own divs and the tags are unique id's:
<div class="product">
<a id="lite1" href="http://www.amazonAffLink.com">
<img class="aligncenter" src="http://www.imageForTheLink.com" />
</a>
</div>
I have 21 products like this on 1 page (id="lite1 through lite21") and need 2 things to happen.
1: Person arrives directly to the product on page with an offset (so the product isn't at the very top of the screen cutoff but toward the set) after clicking link
- That div is lit up (I guess :selected when they arrive)
My css now is
.product {
display: inline-block;
position: relative;
min-width: 250px;
border: 2px solid #fff;
}
.product:hover {
border-color: #3bb3b3;
}
So this gives me the selected on mouseover, but it should be immediately selected so user can tell which product they are looking at based on what they just clicked from a previous page/ebook.
Thanks so much in advance! I'm not sure if it needs js or jquery but whatever gets the job done is fine.