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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:26:29+00:00 2026-06-16T11:26:29+00:00

Is it possible to put an image (a pattern) over 2 or more elements

  • 0

Is it possible to put an image (a pattern) over 2 or more elements (with different background)? (something like Pattern Fill in Adobe Photoshop)

Here’s a screenshot:
enter image description here

Note: Elements content should be selectable by users. I don’t want an div which is over on other elements.

  • 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-06-16T11:26:30+00:00Added an answer on June 16, 2026 at 11:26 am

    Make a .png file (or .gif if you prefer that) and simply overlay this over the div you would like to have this pattern.

    You need to set the parent element using position relative then use position absolute on the element you want to position. So if you want it to be positioned based on the table you need to add position: relative to the table (which won’t do anything because it is already positioned relative) and position: absolute to the overlay. Absolute positioning takes the element out of the document flow and relative positioning leaves it in the document flow which is why stuff is being moved around. The reason for this is based off how CSS works: http://www.w3schools.com/css/pr_class_position.asp

    relative The element is positioned relative to its normal position, so “left:20” adds 20 pixels to the element’s LEFT position

    absolute The element is positioned relative to its first positioned (not static) ancestor element

    Source: Position overlay div

    Code example:

    <div class="overlay">
        <div class="overlay-content">
        </div>
        Content goes here
    </div>
    

    And for the css:

    div.overlay{
        position: relative;
    }
    
    div.overlay-content{
        position: absolute;
        top: 0;
        left :0;
        width: 100%;
        height: 100%;
        background: url(path/to/image.png) repeat top left;
        pointer-events:none; /* To be able to click through */
    }
    

    About the click trough, have a look at this answer: Click through a DIV to underlying elements

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

Sidebar

Related Questions

Hi guy it's possible put in the application Badge some letter? Something like ON
Is it possible to put a macro in a macro in c++? Something like:
Is it possible to put base64 background image in multiple lines instead of one
Is it possible to put a background image, and/or modify the close button (X)
Possible Duplicate: How to center div horizontally and vertically I need to put image
Possible Duplicate: Give a CSS styled div a “border-left-image” Im trying to put a
Possible Duplicate: Vertical centering variable height image while maintaining max-width/height So here is a
I want to put some background image to my paper.path I've created with raphael
for example if I want to put an image wrap another object,possible? <img src='pic.png'>
I would like to put an image in the footer frame of the alert

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.