Link to home
Start Free TrialLog in
Avatar of Jonathan Duane
Jonathan Duane

asked on

background image seems stretched

hi guys,

On larger screens, the background image here http://demo.1800onhold.com.au doesnt take up the whole page, is there any way to get this to stay as fullscreen?
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

There are two ways of doing this

background-size: cover
background-size: contain

cover makes sure the entire screen is covered but keeps ratio so the image will leak either on the sides or top if it does not exactly match the screen resolution and you will have a bit of cropping in that orientation

contain means you see the whole image - no cropping - but you may get a gutter (Vertical / horizontal).

I cannot say what is happening with your page because your background images refer to a URL on localhost - so we can't see them.
Avatar of Jonathan Duane
Jonathan Duane

ASKER

ok should i try both?

and see what i am happier with? its only gona be an issue on really big screens

What css file will i edit?
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For that I would just use cover.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial