{"id":11976,"date":"2022-03-05T03:38:58","date_gmt":"2022-03-05T08:38:58","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11976"},"modified":"2022-03-05T04:04:37","modified_gmt":"2022-03-05T09:04:37","slug":"make-css-background-image-fit-screen","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/make-css-background-image-fit-screen\/","title":{"rendered":"Make CSS Background Image Fit Screen"},"content":{"rendered":"\n
CSS background-image fit screen.<\/p>\n\n\n\n
body {\n background-image: url(images\/background.jpg);\n background-size: cover; \n background-repeat: no-repeat;\n background-position: center center;\n}<\/code><\/pre>\n\n\n\nCSS background-image cover using a shortcut.<\/p>\n\n\n\n
html { \n background: url(images\/background.jpg) no-repeat center center fixed; \n -webkit-background-size: cover;\n -moz-background-size: cover;\n -o-background-size: cover;\n background-size: cover;\n}<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,170,309,471,638],"yoast_head":"\nHow to Make CSS Background Image Fit Screen [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n