html5 - Positioning an image over div tag/tags in bootstrap -


this trying achieve - image in between 2 seperate div tag facebook profile page

i searched here solutions did not much. got positioned wanted since bootstrap , should responsive, when screen size decreases image position gets changed, not want.

here code(which might not proper testing) -

html -

<div class="container">         <div class="jumbotron jumbo" id="custjumbo">             <h1>this jumbotron... </h1>             <h2>let's see can make of it..</h2>              <br>              <img src="images/tiger.jpg" class="img-thumbnail" alt="tiger"              width="304" height="236">         </div> </div> 

the css -

.container {     background-color: cadetblue;      }      .jumbo {      margin-top:20px;     position: relative;     }     .img-thumbnail {     position: absolute;     bottom: -60px;     right: 200px; }     img {     display: block;     width: 200px;     height: 200px;     background: green;     } 

this got after - result

any appreciated.. thank in advance.

you try change img-thumbnail position: relative , use 'bottom: -60px' instead of positioning absolute, can reposition image without use of absolute positioning


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -