Thursday, April 21, 2011

Equal width to select input and text input

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Equal width to select input and text input</title>

<style type="text/css">
margin: 0 auto;
width: 400px;
padding: 20px;
border: 2px solid #abc;

input, select{
width: 200px;
margin: 0 0 10px 0;

box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;





<div class="page">

<input type="text" value="textbox" />

<option>Please choose</option>
<option>Please choose Me</option>