stackoverflow #42465279
by Siwalik Mukherjee
HTML
<body id="particles-js" >
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center">
<img src="http://devimg.com/300x300/dogs" class="img-responsive my-logo">
</div>
</div>
<div class="row">
<div class="col-md-8 text-center col-md-offset-2">
<h3 class="head">The Text goes Here !!!</h3>
</div>
</div>
<div class="row">
<div class="text-center col-md-4 col-md-offset-4">
<myButton>Button Text Here!</myButton>
</div>
</div>
</div>
</body>
CSS
#particles-js{
/* new code start */
display: flex;
align-items: center;
justify-content: center;
/* new code end */
background: url(http://devimg.com/300x300/space) no-repeat center center fixed;
height:100vh;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.container-fluid{
all: initial !important;
position: absolute !important;
top: 0 !important;
pointer-events:none !important;
}
.head{
font-family: 'Exo', sans-serif;
color:#fff;
font-size: 35px;
}
myButton {
background-color:transparent;
border:1px solid #ff0044;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:20px;
padding:17px 60px;
text-decoration:none;
text-shadow:0px 1px 0px #ff0044;
}
myButton:hover {
background-color:#ff0044;
}
myButton:active {
position:relative;
top:1px;
}
.my-logo{
all: initial!important;
width: auto!important;
max-height: 50vh!important;
pointer-events: none !important;
}
.row{
/* new code start */
text-align: center;
/* new code end */
}