Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1039509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:06:31+00:00 2026-05-16T15:06:31+00:00

How would I do the following, preferably just using CSS (but possibly jquery too)

  • 0

How would I do the following, preferably just using CSS (but possibly jquery too) and PHP.

I have a div area, button_background, which has a background image. Inside that div is an A tag, which has a background that overlays the div’s background. (it’s a semi-transparent ‘play’ triangle png which overlays a still from a video). I would like to change the A tag’s background (to a darker triangle) on rollover.

From:

-------------
| ($still)  |
|     \     |
|      \    |
|      /    |
|     /     |
-------------

To

-------------
| ($still)  |
|    *\     |
|    **\    |
|    **/    |
|    */     |
-------------

Note that I’m generating this from PHP, and the button background image’s url is a variable called $still.

Here’s the rough html:

<div class="button_background">
  <a class="button_overlay" href="page.html"></a>  
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:06:32+00:00Added an answer on May 16, 2026 at 3:06 pm

    you could use the darker image to start with and set the initial state in the CSS to a lower opacity.

    a.button_overlay { background:url(images/triangle.png); opacity:0.5;}

    on hover change the opacity to 1, IE will need a MS specific filter property.

    You could also just use a sprite image (both dark and light versions of the triangle in the same single PNG image) and just change the background-position on hover.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using ASP.net webforms my usual solution would have following type of setup -
I would expect the following code to throw a ParseException, but it is 2
I have following and would like to be able to use one function only
I just learning about javascript php html css etc so I'm looking for some
What would be the best (preferably most efficient) method to do the following: Consider
Would following the table below be the best way of determining the access type
Why would the following swap action fail at random times? int i,p,a[11] = {0,1,2,3,4,5,6,7,8,9,10
I thought the following would be a pretty common task and assumed there would
I was hoping the following would be parseable in StAX, <something a=b/> <something a=b/>
As the question states, would the following array require 5 bits of memory? $flags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.