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

  • Home
  • SEARCH
  • 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 7703569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:29:22+00:00 2026-05-31T23:29:22+00:00

I am trying to set up a simple css transition where there is a

  • 0

I am trying to set up a simple css transition where there is a mask over an item and when the user hovers over the item the mask opacity goes to 0 and the item is fully visible. The problem I have is that when I place the mask in the item, for example:

<div class="tile">
   Home
   <div class="mask"></div>
</div>

<div class="tile">
   About
   <div class="mask"></div>
</div>

The mask moves down to the other element. So for example, the mask from the “home” tile moves down to the about tile and the mask from the “about” tile moves down to whatever is after that. How do I fix this? Thanks!

Here is the js fiddle of this: http://jsfiddle.net/5bL8H/

  • 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-31T23:29:23+00:00Added an answer on May 31, 2026 at 11:29 pm

    You can do it very easily with the magic of absolute inside relative:

    .tile {position:relative;}
    .tile .mask {position:absolute;left:0;right:0;top:0;bottom:0;}
    

    You can also remove the height and width – the right and bottom values will take care of that.

    Example: http://jsfiddle.net/5bL8H/2/

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

Sidebar

Related Questions

I'm trying to set up a simple server side RSA encryption of a small
I'm trying to set together a simple TextBox with some watermark text in the
I'm trying to set up a simple SQLite database in Android, handling the schema
I'm trying to set up the simple syndication example from the Django docs, in
I'm trying to set up a simple Roles model for my site. Users can
Here's my problem: I'm trying to set up a simple mobile contact form with
I'm using Spring 3, and trying to set up a simple web-app using annotations
I'm trying to set up a Spring JPA Hibernate simple example WAR for deployment
What I am trying to do: I have a simple set union function in
I'm been trying to build a simple Carousel effect for a set of photos.

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.