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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:44:14+00:00 2026-05-27T14:44:14+00:00

How do you put a (transparent) image over text to keep it from being

  • 0

How do you put a (transparent) image over text to keep it from being selected?
I want my students to type what they see, not just copy/paste.

I’m not worried about them viewing source and copy/pasting from there – if they’re that savvy I don’t need to worry about them knowing the material.

  • 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-27T14:44:15+00:00Added an answer on May 27, 2026 at 2:44 pm

    I don’t believe that this is a great idea, and nor will it work particularly well. Also, without seeing what elements you’re using, I’m going to guess, with the following:

    <p>Something not to copy...<img src="path/to/image.png" /></p>
    

    CSS:

    p {
        position: relative;
    }
    
    p img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
    

    JS Fiddle demo.

    A slightly easier way:

    p {
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -o-user-select: none;
        user-select: none;
    }
    

    JS Fiddle demo.

    A slightly more reliable way (that doesn’t rely on updated/’modern’ browsers, but which isn’t requested in your question, as it uses JavaScript:

    var paras = document.getElementsByTagName('p');
    
    for (var i=0, len=paras.length; i<len; i++){
        paras[i].onmousedown = function(){
            return false;
        };
    }
    

    JS Fiddle demo.

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

Sidebar

Related Questions

Basically, I am trying to put a semi-transparent div over an image to serve
Basically I want to put a transparent image in the bottom-right corner. I read
I put fixed position white-to-transparent PNG over my text on the top of window
I thought to be clever and just put an transparent UIButton over an UIImageView
I put in a partially transparent PNG image in Tkinter and all I get
I want to put a png image as background in QToolButton. But I am
I want to draw a PARTIALLY transparent image on top of another (Making shadows
I want to draw an image over other without drawing its backgroud. The image
I have a html file and I want to put an image in. The
What I am trying to do is put few buttons, made from PNG image,

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.