Jump to content

Tired eyes - quick markup check?


Go to solution Solved by maxxd,

Recommended Posts

Hey y'all.

 

I'm either having a major brain fart or my eyes are entirely too tired today. I've got the following (this is obviously excerpted), and the :hover event on the #secondary aside is not firing in the HTML itself. In Firebug, selecting the :hover state for the #secondary aside behaves as expected. It just doesn't if I actually hover the mouse over the aside.

 

Can anybody see what it is that I'm missing here?

<style>
#secondary:hover img,
.entry-content .featured_image:hover img {
  opacity: .3;
}
#secondary:hover .testimonial,
.entry-content .featured_image:hover .testimonial {
  opacity: 1;
}
.testimonial {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
  width: 90%;
  font-weight: 700;
  font-family: 'Source Serif Pro', 'Georgia', 'Times New Roman', serif;
  color: #ffffff;
  opacity: 0;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}
</style>

...

<aside id="secondary" class="right" role="complementary">
	<div class="bg"><img src="http://mysite.com/path/to/existing/picture.jpg"></div>
	<div class="testimonial">"This is a testimonial" - a person</div>
</aside>
Link to comment
https://forums.phpfreaks.com/topic/296239-tired-eyes-quick-markup-check/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.