robert qewerutiyo
robert qewerutiyo

Reputation: 165

How to fixed image dimension when zoom out page using css?

How to fixed image dimension when zoom out page using css ?

for example in this case is fiverr.com

when zoom page 25%

http://image.free.in.th/v/2013/iy/150803122836.png

and then when zoom page 100% (normal)

http://image.free.in.th/v/2013/ij/150803122858.png

How to fixed image dimension like this case ?

I tried to do many time but not work (image dimension not fixed).

How can i do that ?

Upvotes: 2

Views: 1113

Answers (1)

Nilesh Mahajan
Nilesh Mahajan

Reputation: 3516

To make background image fit the entire width of the page there are some option in CSS. In this case you should try background-size cover.

CSS

.background {
  background-size:cover;
}

Upvotes: 1

Related Questions