Css inline-blocks and bootstrap system grid output

I am trying to have custom HTML markup of my divs using css and bootstrap 3.2 . The image below shows the result that I want to get.

I used the boot grid system to make my page responsive and display correctly on small screen devices. This is the code I tried. And I used http://www.bootply.com to check it out.

Any ideas on how to get the markup?

 <div> <div style="display:inline-block; border:1px solid gray; width:150px; height:150px;"> <img src='' alt="image go here !"/> </div> <div class="container-fluid" style="display:inline-block;"> <div class="row" style="border:1px solid gray;"> <div class="col-md-9">This is the product name</div> <div class="col-md-3 text-right">1 230.99</div> </div> <div class="row" style="display:inline-block; border:1px solid gray;"> <div class="col-md-6">Property 1</div> <div class="col-md-6">Property 2</div> </div> </div> </div> 

Desired Result: The desired result

EDIT: result: The result I get

+6
source share
1 answer

I created Bootply for you.

 <div class="container"> <div class="row"> <div class="col-md-3"> <div class="img"> <img src=""> </div> </div> <div class="col-md-9"> <div class="row"> <div class="col-md-8"> This is the product name </div> <div class="col-md-4"> 1 230.99 </div> </div> <div class="row"> <div class="col-md-6"> Property 1 </div> <div class="col-md-6"> Property 2 </div> </div> </div> </div> </div> 
+12
source

Source: https://habr.com/ru/post/976909/


All Articles