Jump to content

Login Background dynamically change size - Possible?


Recommended Posts

Posted

So, I found an image I'd like to use which is 1920x1080, and have applied it to be absolute and to fill the browser page, however is it possible to make it if the view is lower than 1920x1080 to have the size remain the same, yet if the view is 1920x1080 or greater to have it scale?

  • 2 months later...
Posted

Pending on which selector your using, you can tweak it with:

background: url('IMAGE') center center no-repeat;
background-size: cover;

Example:

#loginPage {
  position:             absolute;
  color:                #000000;
  left:                 0;
  right:                0;
  margin:               0 auto;
  content:              " ";
  background:           url('//192.168.1.3/assets/img/emby/background.jpg') center center no-repeat;
  background-size:      cover;
}

Sorry, this took so long, I just noticed your post... hope it's still helpful.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...