html - Switch Column Placement Bootstrap 4 Using CSS -


see sample code: http://www.bootply.com/kp2iv3uj4j

simply, want change left right columns using css. there way using css without having change html?

for example, if there logo in first column , text in second column, can make them switch places speak using css?

thank time!

warren

give row row-reverse follows:

.row {    flex-direction:row-reverse; } 

here example:bootply

or if want change html better option:

<div class="row flex-row-reverse">   <div class="col-md-6 first">      <img src="http://placehold.it/350x150?text=first">   </div>   <div class="col-md-6 second">       <img src="http://placehold.it/350x150?text=second">   </div> </div> 

here example bootply


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -