display 2 divs in same line code example

Example 1: 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>

Example 2: 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>

Tags:

Html Example