Skip to content

Instantly share code, notes, and snippets.

@chandan77398
Created July 16, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chandan77398/80295a12d48642f242ee17cfa2d2c5f6 to your computer and use it in GitHub Desktop.
Save chandan77398/80295a12d48642f242ee17cfa2d2c5f6 to your computer and use it in GitHub Desktop.
BES Button
<div class="pageTitle">
<h2>Agriculture and Allied Sectors</h2>
<div class="btnArea"><a href="#" class="btn btn-primary"><i class="fa fa-angle-left" aria-hidden="true"></i> Back </a></div>
</div>
Button Changes Start for web
——————————————————
.pageTitle .btnArea .btn-primary { padding: 10px 15px !important; font-size: 16px; }
.pageTitle h2 {
margin-bottom: 0;
font-weight: 400;
text-transform: initial;
text-align: center;
font-size: 25px;
line-height: 30px;
margin: 0 150px;
}
.pageTitle {
position: relative;
}
.pageTitle .btnArea { margin-top: -43px; position: absolute; }
————————————————
Button Changes Start for Mobile
————————————————————
@media screen and (max-width: 600px) {
.pageTitle { position: inherit; }
.pageTitle h2 { margin: 0px !important; }
.pageTitle .btnArea {
margin-top: 0px;
position: inherit;
margin: 0px auto;
display: table;
}
.pageTitle .btnArea .btn-primary {
padding: 8px 10px 23px !important;
font-size: 12px;
margin: 10px auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment