Answers for "how to put 2 divs in the same line"

3

add 2 div in same line

#bloc1, #bloc2
{
    display:inline;
}



<div id="block_container">

    <div id="bloc1"><?php echo " version ".$version." Copyright &copy; All Rights Reserved."; ?></div>  
    <div id="bloc2"><img src="..."></div>

</div>
Posted by: Guest on October-04-2020
0

two divs in the same place

<div class='wrapper'>
   <div class='firstDiv'></div>
   <div class='secondDiv'></div>
</div>
<style>
.wrapper{
  position: relative;
}

.firstDiv, .secondDiv{
  position: absolute;
}
</style>
Posted by: Guest on April-26-2021

Code answers related to "how to put 2 divs in the same line"

Browse Popular Code Answers by Language