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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:15:12+00:00 2026-05-13T21:15:12+00:00

I would like to know if there is any way I can apply 100%

  • 0

I would like to know if there is any way I can apply 100% transparency to text so that we can see the background picture of the page within the characters in the text.

i.e. imagine I’ve got a <div> with a white background, and a background image on <body>. I’d like to set the text inside the <div> so that the background image on <body> can be seen through the text, despite the white background on the <div>.

I could probably use an inverted font but I would prefer a better way to do it if there is one.

  • 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-13T21:15:12+00:00Added an answer on May 13, 2026 at 9:15 pm

    Does it have to be dynamic? The only way to do that is with an image with transparency (GIF or, better, PNG).

    I’m not sure if this is what you want, but will explain it anyway.

    Situation: you have a non plain background that you want to bee seen through your text.

    Solution: no CSS is coming to the rescue for this. You’ll have to use your trusty image editor to create a layer with text, and another layer that will be the negative of your text

    This could allow you to have some interesting effects, but if you want it to be dynamic, you’ll have to generate the images on the fly serverside.

    This kind of trickery is currently impossible with pure CSS (might be possible with Javascript).


    Edit

    Seeing Paul’s find on webkit got me thinking on how to fake that behavior in Firefox, Opera and IE. So far I’ve had good luck using the canvas element on Firefox, and I’m trying to find some behavior in filter:progid:DXImageTransform.Microsoft.

    So far with canvas, this is what I did

    <html>
    <body>
    <canvas id="c" width="150" height="150">
    </canvas>
    <script>
    ctx = document.getElementById("c").getContext("2d");
    // draw rectangle filling the canvas element
    ctx.fillStyle = "red";
    ctx.fillRect(0,0,150,150);
    
    // set composite property
    ctx.globalCompositeOperation = 'destination-out'; 
    // the text to be added now will "crop out" the red rectangle
    ctx.strokeText("Cropping the", 10, 20);  
    ctx.strokeText("red rectangle", 10, 40);  
    
    </script>
    </body>
    </html>
    

    by using a detination-out compositing and drawing text on the canvas.

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

Sidebar

Related Questions

I would like to know if there is any way that I could build
I'm new to PowerBuilder 12, and would like to know is there any way
I would like to know if there is any way to find the actual
I would like to know if there is any way to return an char
I'm implementing some code generators, i would like to know if there's any way
I would like to know if there is any easy way to rank blog
I would like to know if there is anyway I can compare two columns
I would like to know is there any difference in performance between these two
I would like to know if there any shorter expression exists, than this: '0000-00-00
We'd like to know if there is a way to format financial data such

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.