<!DOCTYPE html> <html> <head> <style> * { margin: 0; padding: 0; border: 0; } #container { float: left; margin: 10px; border: 1px solid; } input { width: 300px; background-color: orange; } select { width: 300px; background-color: green; } </style> </head> <body> <div id="container"> <div> <input type='text' /> </div> <div> <select> <option></option> </select> </div> </div> </body> </html>