1 reply [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 3 years 11 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

This is the css styling i gave to my website , the problem is when i zoom out , i see the image (that is the background i have specified) but around it , i see a white background , now what can i do so that i see my background image even when i zoom out .

#home-section{
	background: #000 url("../images/home-bg.jpg") no-repeat bottom center;
	background-size:cover;
	color: #FFF;
	min-height: 800px;
	vertical-align: middle;
}

helldog2004
helldog2004's picture
Offline
Enthusiast
Netherlands
Last seen: 3 years 18 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2014-03-02
Posts: 205
Points: 239

try

try this:

#home-section{
	background: #000 url("../images/home-bg.jpg") no-repeat bottom center;
	background-size:100% 100%;
	color: #FFF;
	min-height: 800px;
	vertical-align: middle;
}

cheers Henk

Check Maximum Webdesign for your online solutions