Giving half background on div

<div id=”full-box” class=”col-left-dark”></div>

#full-box {position: relative;}
.col-left-dark:after{ background:#f0f2f3; content:””; height:100%; left:0; position:absolute; top:0; width:50%; }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s