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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:52:26+00:00 2026-06-14T16:52:26+00:00

My site has a tiling background image applied, which can be seen behind photos

  • 0

My site has a tiling background image applied, which can be seen behind photos as they transition (most photos fill the background). Have a look here: http://new.element17.com.

When viewed in fullscreen, though (using the button in the top-right in Chrome/Mozilla), this background image disappears and the background is then just #fff. How can I style this?

Based on some reading, I’ve tried the following:

body:-webkit-full-screen {background-image:url(../images/olive.jpg);}
body:-moz-full-screen {background-image:url(../images/olive.jpg);}
body:-ms-full-screen {background-image:url(../images/olive.jpg);}
body:-o-full-screen {background-image:url(../images/olive.jpg);}
body:full-screen {background-image:url(../images/olive.jpg);}

But this doesn’t result in any change. Any ideas?

  • 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-14T16:52:27+00:00Added an answer on June 14, 2026 at 4:52 pm

    I’m pretty sure if you make a certain element enter full screen mode, rather than doing it on the document object, you can then style from that down.

    You’ll need to trigger the requestFullScreen method on the element you want to make full screen. In this case, it’s the root html element. This is the method I threw together when I needed it:

    function enter_full_screen(){
        elem    = document.getElementsByTagName('html')[0];
        calls   = ['requestFullScreen','webkitRequestFullScreen','mozRequestFullScreen'];
    
        for(var i = 0; i < calls.length; i++){
            if(elem[calls[i]]){
                elem[calls[i]]();
                return;
            }
        }
    }
    

    And the styles would then become:

    :-webkit-full-screen body {background-image:url(../images/olive.jpg);}
    :-moz-full-screen body {background-image:url(../images/olive.jpg);}
    :full-screen body {background-image:url(../images/olive.jpg);}
    

    I’ve put together a quick example page showing this in action: Example (just use the escape key to exit full screen – I didn’t bother with the exit button)

    Also, according to the MDN docs on fullscreen mode, no version of IE supports fullscreen mode, and Opera uses the non-prefixed version for triggering, but doesn’t support the pseudo-class. You might want to consider manually adding a class to the html or body elements when entering full screen, and removing it when exiting, if you want to fully support Opera.

    Another interesting fact: the docs say Gecko and Webkit use (prefixed) :full-screen for the pseudo-class, but the actual W3C proposal uses :fullscreen – no dash between the words. I’ve used both, just to be safe…

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

Sidebar

Related Questions

My site has an input box, which has a onkeydown event that merely alerts
my site has lots of incoming searches which is stored in a database to
My site has a form which insert records in a database using ajax, at
My site has the following url format: www.mysite.com/Display.aspx?ID=128 However most users see the url
I have a site which has a homepage that contains a great deal of
My Magento site has a product which has a few Custom Options, one text,
My site has a login box in the Layout page on which every page
My site has been copied via an iframe and I can't break out, I
My Wordpress site has multiple custom categories and posts types all which need to
My site has its own login system and the user can choose to connect

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.