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 6475175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:40:25+00:00 2026-05-25T06:40:25+00:00

James here. I have a quick question. I want to add a similar image

  • 0

James here. I have a quick question. I want to add a similar image hover affect like on http://themaxdavis.com , but for some reason I can’t quite get it. I want to add to my code when you hover over the picture post (.pic), a black overlay with a 0.5 opacity to fade in over the image itself. Also, if anyone could help me figure out a way to put text inside that black overlay also like Max Davis, that would be AWESOME. Here is the code to the .pic element.

.pic { position:relative; overflow: hidden; float: left;
{block:IndexPage}width:250px;{block:IndexPage}
{block:PermalinkPage}width:500px; margin-top: 39px; margin-bottom:
15px;{/block:PermalinkPage} {block:IndexPage}margin: 15px 15px 0px
0px;{/block:IndexPage} background-color: #FFF; z-index: 1;
{block:IndexPage}box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
-webkit-transition: box-shadow 0.3s ease-out;
-moz-transition: box-shadow 0.3s ease-out; transition: box-shadow 0.3s
ease-out;
-o-transition: box-shadow 0.3s ease-out;{block:IndexPage} }

My website URL is http://-respawn.tumblr.com

PS I’m on my way out the door now, so I will not accept the answers right away, but I will accept them and read them all as soon as I get home.

  • 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-25T06:40:25+00:00Added an answer on May 25, 2026 at 6:40 am

    Cleaned up code:

    Assuming that .pic will contain the picture as background or will be an img element.

    .pic
    {
        position:relative;
        overflow: hidden;
        float: left;
        width:250px;
        width:500px;
        margin-top: 39px;
        margin-bottom: 15px;
        margin: 15px 15px 0px 0px;
        background-color: #FFF;
        z-index: 1;
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
    

    Create an empty div element inside .pic and give it this style.

    #emptyDiv
    {
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background-color: transparent;
        -webkit-transition: box-shadow 0.3s ease-out;
        -moz-transition: box-shadow 0.3s ease-out;
        transition: box-shadow 0.3s ease-out;
        -o-transition: box-shadow 0.3s ease-out;
    }
    #emptyDiv:hover
    {
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To explain my question I have created this http://jsfiddle.net/Jams/XNVB2/ here I want when div1
James here. I'm working on a site that I want to have the same
I am trying to extend the JSON.net example given here http://james.newtonking.com/projects/json/help/CustomCreationConverter.html I have another
I have a struct here with something like: char *sname; ........ players[i].sname equalling James.
I am using HgEclipse from here: http://www.javaforge.com/project/HGE I have created a new repository on
I have: name: james but I want to be shown as: name: james Here's
I have done an email approval script following James Ferreira's youtube tutorial here .
James here. This question relates (sort of) to the one I posted a little
I have names like this: $str = 'JAMES JIMMY SMITH' I run strtolower ,
Here is a newbie scala question. I have a list of people with Person

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.