add elements to div same line code example Example: add 2 div in same line #bloc1, #bloc2 { display:inline; }