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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:08:48+00:00 2026-06-07T00:08:48+00:00

I have an icon that is inserted into a page using the background-image property.

  • 0

I have an icon that is inserted into a page using the background-image property. Works great. However the icon is white and when printed it doesn’t show up. I have a print stylesheet I have setup but the icon doesn’t show when printed. I assume this is because I am using the background-image property and it doesn’t print background-images. What is the best way to work around this problem to get the icon to show and print?

CSS:

 /* PAGE CSS */ 

.info-icon{
   width: 16px;
   height: 16px;
   padding: 0 10px;
   background-repeat: no-repeat;
   background-image: url(data:image/png;base64,-data-URI-code-) /* White Icon */;
}

 /* PRINT CSS */ 

.info-icon{
   width: 16px;
   height: 16px;
   padding: 0 10px;
   background-repeat: no-repeat;
   background-image: url(data:image/png;base64,-data-URI-code-) /* Black Icon */;
}

HTML

<p class="textcenter"><span class="info-icon"></span>Photo Info:</p>
  • 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-07T00:08:49+00:00Added an answer on June 7, 2026 at 12:08 am

    Unless someone comes up with a better solution here is what I ended up doing. Similar to what Sheikh Heera’s Link recommended.

    HTML:

    <p class="textcenter">
      <img class="info-icon-black" src="data:image/png;base64, -DATA-URI-CODE-" />
      <span class="info-icon"></span>Photo Info:</p>
    

    CSS:

    /* PRINT STYLESHEET
    -------------------------
    SHOW BLACK INFO ICON  */
    
    .info-icon-black{
        display:inline;
    }
    
    /* HIDE WHITE INFO ICON  */
    
    .info-icon { 
        display:none; 
        /* I still hide in the event someone has print background
        images ticked on in print options. */
    }
    
    
    /* SCREEN STYLESHEET
    -------------------------
    HIDE BLACK INFO ICON  */
    
    .info-icon-black{ 
        display:none;
    }
    
    /* SHOW WHITE INFO ICON  */
    
    .info-icon{
      width: 16px;
      height: 16px;
      padding: 0 10px;
      background-repeat: no-repeat;
      background-image: url(data:image/png;base64, -DATA-URI-CODE-;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a db.BlobProperty property (called Icon) in my entity which contains an image
I have an icon that I would like to be able to drop into
I have a grayscale icon that I'm editing with Photoshop with a transparent background,
I have a home-screen widget that has an icon that starts/so pose to bring
I currently have implemented an overlay item that shows an icon for Geo-point on
I have a table in my data base that has three columns: Screen, Icon,
I'm using NotifyIcon (System tray icon) in my WinForms application. I also have a
Using wxPython, I created a taskbar icon and menu. Everything works fine (in Windows
I have a notification bar that appears at the top of a page, then
I have an icon identified by an HICON handle that I want to draw

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.