Scaling background.

Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jul 16, 2014 10:50 pm
Reply with quote
Report this post
Hi.
Is there some way to scale background image or specify different images for different screen resolutions.
User avatar
Junior Boarder

GK User
Thu Jul 17, 2014 6:59 am
Reply with quote
Report this post
You can specify different background images for different screen resoolutions:
Code: Select all
#element {
background: transparent url('../images/fileA.jpg') 0 0 no-repeat;
}
@media (max-width: 1020px) {
#element {
background: transparent url('../images/fileB.jpg') 0 0 no-repeat;
}
}

@media (max-width: 640px) {
#element {
background: transparent url('../images/fileC.jpg') 0 0 no-repeat;
}
}

@media (max-width: 320px) {
#element {
background: transparent url('../images/fileD.jpg') 0 0 no-repeat;
}
}

User avatar
Moderator

GK User
Thu Jul 24, 2014 1:57 pm
Reply with quote
Report this post
Thanks!
User avatar
Junior Boarder

GK User
Thu Jul 24, 2014 2:47 pm
Reply with quote
Report this post
Is there anything else I can help you with regarding this topic?
User avatar
Moderator

GK User
Thu Jul 24, 2014 3:32 pm
Reply with quote
Report this post
no, thanks)
User avatar
Junior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.