2

I am using the checkbox in the following manner. The screen shot in Firefox enter image description here

And the sceen shot in IE8 is here

enter image description here

Here is the code

<div>
   <div>Testing :</div>
   <div><input type="checkbox" value="1"/> One</div>
   <div><input type="checkbox" value="2"/> Two</div>
   <div><input type="checkbox" value="3"/> Three</div>
</div>

How to align the text at the center vertical in both the browsers?

coderslay
  • 13,960
  • 31
  • 73
  • 121

2 Answers2

1

Write this in your CSS -

input[type="checkbox"]{
    vertical-align: middle;
}

Working Demo

Inline CSS trick works on WIN XP. Try -

<div><input type="checkbox" value="1" style="vertical-align: middle;" /> One</div>
Dipak
  • 11,930
  • 1
  • 30
  • 31
0

Try using with different css :

<!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="ie8.css">
<![endif]-->

write your own css for checkbox in this file for ie 8

rusly
  • 1,504
  • 6
  • 28
  • 62