<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div style="height:50px; line-height: 50px; background-color: #ffb900; color: #eff9f9"> <div style="font-size: 10px; float: left; 20%">1</div> <div style="font-size: 10px; float: right; 60%">2</div> </div> </body> </html>