Bootstrap Align Image with text

前端 未结 7 817
别那么骄傲
别那么骄傲 2021-02-08 04:14

I am trying to align an image on the left side with text using boostrap, and when page is viewed on mobile devices the images becomes centred on top of the text !



        
相关标签:
7条回答
  • 2021-02-08 05:07

    use the grid-system of boostrap , more information here

    for example

    <div class="row">
      <div class="col-md-4">here img</div>
      <div class="col-md-4">here text</div>
    </div>
    

    in this way when the page will shrink the second div(the text) will be found under the first(the image)

    0 讨论(0)
提交回复
热议问题