hi the code below in IE seems to make this div height alot bigger than in firefox, can anyone give me an idea as to why this is. Is it something to do with the padding and the border, and if so why would it display differently in firefox?
#search {
width: 342;
height: 20px;
margin: 0 auto;
background: #fff;
text-align: center;
padding: 2px;
border:2px solid #CCCCC;
}
<div id="searchbar">
<form action="" method="get">
<input name="" type="text" class="inputbox"></form></div>
even with the padding and border it should only be
height + padding + padding + border + border, is that correct?
#search {
width: 342;
height: 20px;
margin: 0 auto;
background: #fff;
text-align: center;
padding: 2px;
border:2px solid #CCCCC;
}
<div id="searchbar">
<form action="" method="get">
<input name="" type="text" class="inputbox"></form></div>
even with the padding and border it should only be
height + padding + padding + border + border, is that correct?