{"id":11851,"date":"2022-02-07T03:04:01","date_gmt":"2022-02-07T08:04:01","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11851"},"modified":"2022-02-07T03:04:03","modified_gmt":"2022-02-07T08:04:03","slug":"how-to-create-linear-gradient-background-css","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-create-linear-gradient-background-css\/","title":{"rendered":"Create a Linear Gradient Background of Two Colors in CSS"},"content":{"rendered":"\n
How to split a background into two colors in CSS:<\/p>\n\n\n\n
div {\n height: 200px;\n width: 200px;\n background: linear-gradient(to bottom, #1F4E79 0%, #1F4E79 50%, #ddd 50%, #ddd 100%);\n}<\/code><\/pre>\n\n\n\nSyntax:<\/p>\n\n\n\n
background: linear-gradient(, color1 color1-stop-at, color2 color2-start-at);<\/code><\/p>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,170,189,471],"yoast_head":"\nHow to Create a Linear Gradient Background of Two Colors in CSS<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n