html - Specific responsive positioning on single page fullscreen jumbtron image + more -


essentially trying accomplish single-page website full screen background image using bootstrap. however, need logo , (2) buttons site positioned on page on desktop, reset have logo @ top , buttons placed vertically stacked below on mobile.

i feel shouldn't complicated , accomplished bootstrap grid system struggling.

this model of should (desktop)(mobile)

the main issues having logo moving on center of image on laptops smaller screen size (with plenty of space on right) , mobile responsiveness being disaster. thanks.

current html:

<div class="jumbotron desktop">   <div class="container">         <div class="container-fluid">             <div class="container content">             <div class="container">          <div class="row">                  <div class="col-md-12">                      <img class="logo-img" src="http://via.placeholder.com/350x150/f2f2f2?text=logo">                  </div>          </div>          <div class="row button-row">                  <div class="col-md-12 offset-2" id="content-buttons">                          <button onclick="window.location='#';" class="btn btn-4 btn-4a">button 1</button>                          <button onclick="window.location='#';" class="btn btn-4 btn-4a">button 2</button>                  </div>          </div>         </div>             </div>   </div> </div> 

current css:

.jumbotron{ height: 100vh; background-image:url(http://via.placeholder.com/1920x1080?text=x); margin:0; position:relative; width:100%; border-radius: 0px; 

}

.jumbotron > .container{   width: 300px;   height: 100px;   padding: 20px;   position: absolute;   top: 50%;   left: 50%;   margin: -70px 0 0 -170px; }  .logo-img{    width: 816px;    height: 233px;  }   .mobile {    display:none;  } 

full jsfiddle code


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -