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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:15:25+00:00 2026-05-11T09:15:25+00:00

I want to create an html page with a watermark. I set the background-image

  • 0

I want to create an html page with a watermark. I set the background-image on the body. However I have some elements that are not allowing the background image to bleed through. They define their own background-color (but not background-image), overriding the color in the body. This surprised me. They didn’t override the image, just the color.

It seems reasonable to have a visible watermark on a page with elements having different background colors.

How do I get the effect I want using standard html/css?

Here’s some sample code that shows the problem. Note the white block obscuring my watermark image.

<html> <head> <style type='text/css'>  .everything {      background: url(/images/shield-25.png) blue no-repeat center; } table, div{ width: 100% }  #table2 { background-color: white } #div2 { background-color: white } </style> </head> <body class='everything'>    <table id='table1'><tr><td>Top</td></tr></table>   <!-- This table put a big white line over my watermark image. -->   <table id='table2'><tr><td>Middle</td></tr></table>   <table id='table3'><tr><td>Bottom</td></tr></table>    <div id='div1'><tr><td>Top</td></tr></div>   <!-- Thought maybe it was a table thing but nope, divs do it too. -->   <div id='div2'><tr><td>Middle</td></tr></div>   <div id='div3'><tr><td>Bottom</td></tr></div>  </body> </html> 
  • 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. 2026-05-11T09:15:26+00:00Added an answer on May 11, 2026 at 9:15 am

    Unfortunately for you, this is the intended behavior. background-image and background-color are sub-properties of the background property. Since you defined a background on #table2 and #div2, you can’t see ‘through’ them to the page background anymore.

    CSS3 allows you to set the opacity of the background using the rgba() expression, but IE doesn’t support this (Firefox 3 and Safari/Webkit do). To get an rgba()-like effect in IE, you can use a filter: rule such as the following:

    #table2 {     filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff80,endColorstr=#ffffff80); /* IE proprietary */     background-color: rgba(255, 255, 255, 0.5); /* CSS3 standard */ } 

    Note how the startColorstr and endColorstr parameters have a fourth value for alpha.

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

Sidebar

Related Questions

I have a website which uses PHP and HTML pages, I want to create
I am using the Html.TextBox helper to create textboxes. I want to set attributes
I want to create a simple http proxy server that does some very basic
I am trying to create a HTML page where the body color changes depending
I want to create a toggle button in html using css. I want it
I want to create a very simple HTML/AJAX based GUI for a Python program.
I want to create a client side mail creator web page. I know the
I want to create a function that performs a function passed by parameter on
I want to create a portfolio page like the one in the link below
I want to include a silverlight application (.xap file) inside a HTML page. Using

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.