Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to declare background-size-height?

Tags:

html

css

Is there a way to declare background-size-height, or something close to that?

I want the background image to fit 100% height but keep it's proportions, aka width still dynamic.

Thanks for any pointers.

like image 984
fancy Avatar asked Dec 10 '25 19:12

fancy


1 Answers

See this article on CSS Tricks for info on making a full-screen background image. https://css-tricks.com/perfect-full-page-background-image/

And this link to W3Schools for info on the background-size css property. http://www.w3schools.com/cssref/css3_pr_background-size.asp

like image 143
m.qayyum Avatar answered Dec 13 '25 09:12

m.qayyum