<!DOCTYPE html> <html> <meta charset=utf-8> <head> <style> div { float: left; border: 1px solid black; } </style> </head> <body> <div><span>same</span><span>line?</span></div>