html5 - Div to auto adjust to fit responsive background image -
i'm looking solution have parent div auto adjust size responsive background image while still allowing child elements inside div. i've used solution thread, can see, child elements being pushed down. suggestions?
example: http://nowicki.nigelyoshida.com/services/
<div id="category-name" style="background-image:url('http://nowicki.nigelyoshida.com/wp-content/uploads/2015/06/nowicki-services.jpg'); background-size: contain; width: 100%; height: auto; padding-top: 65%" class="col-xs-12 page-header-image"> <span>services</span> <div class="featured-text"> <h1>why chiropractic?</h1> <p>chiropractic therapy can maintain balanced relationship between musculoskeletal health , nervous system promote flexibility , pain relief.</p> </div> </div>
Comments
Post a Comment