Get your website background to fit any resolution!

Welcome to CPAElites - the original incentive CPA affiliate marketing forum online, solely based on "Cost Per Action".

Be a part of something great, join today! Learn CPA marketing with CPAElites, we will teach you everything such as the best CPA networks, CPA offers with highest payouts and best conversion rates, unsaturated CPA niches, most effective traffic sources and more.

DutchPride

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 14, 2013
Messages
5,416
Reaction score
0
Location
The Netherlands.
Website
www.cpaelites.com
I've been struggeling with this allot until i found this piece of code.
Had a nice blogspot with custom background, And then it didn't fit on other resolutions, Well i have found an easy fix.
What this actually does is it just scrolls with your screen.
So it wil look the same on any screen!

Code:
html { 
  background: url(background url here) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
 

J@bz

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 13, 2013
Messages
907
Reaction score
5
does the re-size the background so it fits the screen? or something else?
 

HueyFreeman

Member
Joined
July 29, 2013
Messages
19
Reaction score
0
Location
Oklahoma
It's called a Responsive background, and for old webmaster's - it will put a tear in their eye of how great it is. I am not one of those people though.
 

HondaNSX

Well-known member
VIP Legends CPAElites Classic (1.0)
Joined
August 1, 2013
Messages
59
Reaction score
0
Just used this on my future niche. Works great was looking for something like this, thank you DP! :D
 
Top Bottom