Online Forum To Support Coders With Technical Assistance - Read Write Execute

Add two background color using css

Ankit Agrawal
Ankit Agrawal
Published on August 31, 2016 · 1 min read
<div class="demoItem"></div>
<style>
.demoItem
{
	background: linear-gradient(90deg, #1E7DDB 50%, #2c7055 50%);;
	height:400px;
}
</style>
Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article convert seconds into formatted time Next Article → Call Controller function from webroot file in Cakephp 3