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: 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.
Is there some way to scale background image or specify different images for different screen resolutions.
-
- 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;
}
}
-
- Moderator
- 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?
-
- Moderator
5 posts
• Page 1 of 1