Skip to content

Instantly share code, notes, and snippets.

@wicky-andrian
Created September 17, 2018 14:07
Show Gist options
  • Select an option

  • Save wicky-andrian/160765026ebd1d8eacb8416e63ed1ad3 to your computer and use it in GitHub Desktop.

Select an option

Save wicky-andrian/160765026ebd1d8eacb8416e63ed1ad3 to your computer and use it in GitHub Desktop.
rails css inline style background-image
<header class="masthead text-center text-white d-flex" style="background-image: url(<%= asset_path 'header.jpg' %>) !important;">
<div class="container my-auto">
<div class="row">
<div class="col-lg-10 mx-auto">
<h1 class="text-uppercase">
<strong>Your Favorite Source of Free Bootstrap Themes</strong>
</h1>
<hr>
</div>
<div class="col-lg-8 mx-auto">
<p class="text-faded mb-5">Start Bootstrap can help you build better websites using the Bootstrap CSS framework! Just download your template and start going, no strings attached!</p>
<a class="btn btn-primary btn-xl js-scroll-trigger" href="#about">Find Out More</a>
</div>
</div>
</div>
</header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment