This is a 100% width and then some horizontal bar that will allow you to break up a website page and promote a message or product. Change the background to match your needs. This was based on a design from the JSN Dona template and was published in the content-top-below position.
CSS
/*--- Contact Bar ---*/ /* -- FULL WIDTH Class (Optional)-- */ /* This class is inbuilt to the Joomlashine Dona Template, maybe others. Add the code below if not present */ .template-full-width { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box !important; width: 100%; padding-left: 1000px !important; padding-right: 1000px !important; margin: 0 -1000px !important; padding-top: 10px; padding-bottom: 10px; position: relative; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } /* ---- */ /* remove the extra padding in this module position only (optional) */ #jsn-pos-content-top-below { padding: 0 0; } .contact-bar { background-image: url("images/modules/790/cb-background.jpg"); background-position: center center; background-size: 100% 100%; background-attachment: fixed; padding: 25px 10px; text-align: center; } .contact-bar .cb-text { display: inline-block; width: 66%; } .contact-bar .cb-text p { font-size: 20px; line-height: 28px; color: #fff; text-align: right; margin: 15px 0 0; } .contact-bar .cb-button{ display: inline-block; white-space: nowrap; margin: 15px; } .contact-bar .cb-button a.btn { color: #fff; font-size: 16px; line-height: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; padding: 13px 25px; text-decoration: none; text-shadow: none; box-shadow: none; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; transition: 0.3s; -moz-transition: 0.3s; -webkit-transition: 0.3s; width: auto; border-color: #9B1612; background: #9B1612; } .contact-bar .cb-button a.btn:hover { background: none; color: #9B1612; } @media screen and (max-width: 1024px){ .contact-bar .cb-text p { font-size: 16px; } } @media screen and (max-width: 799px) { .contact-bar .cb-text p { font-size: 14px; line-height: 22px; margin: 10px; } } @media screen and (max-width: 768px) { .contact-bar .cb-text p { text-align: center; } } @media screen and (max-width: 640px) { .contact-bar .cb-text p { font-size: 16px; line-height: 24px; margin: 10px; } .contact-bar .cb-button { padding-left: 0; } .contact-bar .cb-button a.btn { margin: 0; } }
CSS (Fix for this template to get the demo running)
.contact-bar .cb-button a.btn { color: #fff !important; } .contact-bar .cb-button a.btn:hover { color: #9B1612 important; }
HTML
<div class="contact-bar template-full-width"> <div class="cb-text"><p>NEED ADVICE on your business growth, customer experience or your finances?</p></div> <div class="cb-button"><a href="#" class="btn">Contact Now</a></div> </div>