Attention: Server migration delayed. - Please click [here] to read more! CPAE 2.0 (Last update: Wednesday, 24th of April, 03:40 PM/15:40, UTC+2, Europe)


Get your website background to fit any resolution!
2013-08-04, 01:16 AM, (This post was last modified: 2013-08-04, 01:17 AM by DutchPride.)
#1
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;
}

Any questions related to CPA belong here.
Before posting, make sure you are in the correct section.

I am temporarily absent due to family circumstances.

Reply
Share This Thread :

2013-08-04, 01:40 AM,
#2
Thanks for sharing this man :D!

free gear of war 4 beta download
Reply
2013-08-04, 01:45 AM,
#3
(2013-08-04, 01:40 AM)Soup Wrote: Thanks for sharing this man :D!

You're welcome, This was just something i was struggeling with allot.

Any questions related to CPA belong here.
Before posting, make sure you are in the correct section.

I am temporarily absent due to family circumstances.

Reply
2013-08-04, 02:23 AM,
#4
does the re-size the background so it fits the screen? or something else?
Reply
2013-08-04, 02:26 AM, (This post was last modified: 2013-08-04, 02:50 AM by DutchPride.)
#5
(2013-08-04, 02:23 AM)J@bz Wrote: does the re-size the background so it fits the screen? or something else?

ill make an test blog and show you guys an example.
Going to bed now.

Any questions related to CPA belong here.
Before posting, make sure you are in the correct section.

I am temporarily absent due to family circumstances.

Reply
2013-08-04, 07:27 AM,
#6
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.
Reply
2013-08-04, 12:22 PM,
#7
Thanks! for the share bro!
Reply
2013-08-04, 12:24 PM,
#8
This an extremely useful share - thanks Dutch

[Image: 09157213daeae64192b209fd480e9ed2.gif]

Reply
2013-08-04, 11:36 PM,
#9
Oh thanks! I didn't know this. This will come in handy
Reply
2013-08-05, 01:00 AM,
#10
Just used this on my future niche. Works great was looking for something like this, thank you DP! :D
Reply


Related Threads
Thread Author Replies Views Last Post
  [TUTORIAL]Get free premium fonts from myfonts website Raman saab 34 12,318 2019-04-10, 12:06 AM
Last Post: redhsk
  [Get Free] Ultimate Mega Scripts Collection AIO [ Updated - Riddik ] Riddik 243 45,857 2018-11-03, 06:24 PM
Last Post: mailred
  Your favorite IDE? veacher 33 5,863 2018-11-02, 11:53 AM
Last Post: ivertell
  [Get Free] 3 Shutterstock photo/vector for designer ver1 1 574 2018-07-26, 11:25 AM
Last Post: CharlieHarper
  [GET][NULLED] - (...) sundragon0220 2 714 2018-07-15, 09:19 PM
Last Post: CharlieHarper





About Us | Contact Us | CPA Elites | Advertise | Stats

Copyright © 2013 - 2019 by (company to be announced later)
Temporarily (!) powered by MyBB and enhanced by Charlie Harper (GitHub) aka Charles Francis Harper (Wikipedia)
Return to top
This forum uses Lukasz Tkacz MyBB addons.