Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Getting a Background to showup on Print

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26783
    rtvenge
    Member

    I have a PNG that has white text in it, so I need to put a background color on the img. However, it seems that the user stylesheet in your brwser overrides all of the backgrounds in your CSS on print. Does anyone know a way around this?

    I’ve tried this so far:

    Code:
    .printElement { display: block; width: 100%; background-color: red !important; }

    The server is creating the image, so I can’t put the background in the image.

    Thanks!
    Ryan

    #66679
    AshtonSanders
    Participant

    I haven’t found how to make background images print.

    Have you tried creating a Print CSS file? It’s worth a try…

    #74499
    rtvenge
    Member

    After much searching, I’ve found nothing. The browser strips out backgrounds by default and there isn’t a way to override it.

    Ryan

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.