DIV side by side in one line

Find answer how to place two div elements side by side in the same
line. When two div elements are placed one after another on HTML page
they are displayed in two lines. They usually end up one above the
other, never side by side.


Here you can find:

  • how to place two div elements side by side using inline-block

  • example of three div elements side by side using inline-block

  • how to place two div side by side using table



Two div elements side by side using inline-block




This is the first div with text.





This is second div with text



Here is a code: click here

Related Posts Plugin for WordPress, Blogger...