Fullwidth Background Color for Any Element

This code will add a background color that stretches horizontally to the edges of the browser. To make this work, you will need to find the correct ID of the Element that you want to modify using Chrome's Developer Tools or Firebug. In this example, the codes uses the ID "#cc_m_123456789".

 

We have a separate tutorial for making entire sections of your website have a fullwidth background

 

 


<style type="text/css">

#cc_m_123456789 {
background-color: #93e7e7;
margin: 0 -500%;
padding: 0 500% !important;
}

</style>



Example:

 

This Text Element has a fullwidth background color!