The following example is very simple. This shows the main thing you would like to do: since the form elements can be in CSS style, like everything else, it's pretty simple. In this example, there are still some design issues with browsers without firefox, I will improve it a bit.
<html> <head> <style> select#selectoption { border-left:none; padding:none; } input#datahere { position:relative; border-right:none; padding:none; } </style> </head> <body> The form below is a simple example. <form name ="explanation"action="test" method="post"> <input type="text" id="datahere" /> <select id="selectoption" /><option>test</option><option>test2</option></select> </form> </body> </html>
EDIT: An online example of what you want can be seen here: http://jsfiddle.net/xFQMf/3/
source share