471,618 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

vertical align of checkbox in html/css

realin
254 100+
hi guys this is very very simple and basic question.. i just cnat get it done .

i want to align the checkbox in middle how do i do that ..

here is the screenshot


http://img88.imageshack.us/my.php?image=alignzf9.gif


i tried doing
Expand|Select|Wrap|Line Numbers
  1. vertical-align:middle;
in css but din really help.. was that wrong way i was doing ?

i would like to do it in HTML or if in CSS then tell how do i write inline code, i.e. i dont want to add one more div in my CSS file.. just tell me how can i edit this code

[HTML]<input type="checkbox" id='chk' name='rem' />[/HTML]
Nov 12 '07 #1
5 14048
drhowarddrfine
7,435 Expert 4TB
Link .
Nov 12 '07 #2
Hello, actually if u give the full code then its will be quite helpful to clear the problem. Means from the code its not able understand where u like to align your check box. so give the whole code.
hi guys this is very very simple and basic question.. i just cnat get it done .

i want to align the checkbox in middle how do i do that ..

here is the screenshot


http://img88.imageshack.us/my.php?image=alignzf9.gif


i tried doing
Expand|Select|Wrap|Line Numbers
  1. vertical-align:middle;
in css but din really help.. was that wrong way i was doing ?

i would like to do it in HTML or if in CSS then tell how do i write inline code, i.e. i dont want to add one more div in my CSS file.. just tell me how can i edit this code

[HTML]<input type="checkbox" id='chk' name='rem' />[/HTML]
Nov 13 '07 #3
In fact,vertical-align is used for tables,it is useless in divs.
Nov 13 '07 #4
drhowarddrfine
7,435 Expert 4TB
To the contrary, vertical-align is not for tables or divs. It is for inline elements.
Nov 13 '07 #5
hi guys this is very very simple and basic question.. i just cnat get it done .

i want to align the checkbox in middle how do i do that ..

here is the screenshot


http://img88.imageshack.us/my.php?image=alignzf9.gif


i tried doing
Expand|Select|Wrap|Line Numbers
  1. vertical-align:middle;
in css but din really help.. was that wrong way i was doing ?

i would like to do it in HTML or if in CSS then tell how do i write inline code, i.e. i dont want to add one more div in my CSS file.. just tell me how can i edit this code

[HTML]<input type="checkbox" id='chk' name='rem' />[/HTML]
try negative value to "vertical align: - px;"
Mar 10 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by abracad | last post: by
10 posts views Thread by Markus Ernst | last post: by
1 post views Thread by Kenneth | last post: by
4 posts views Thread by shivas | last post: by
5 posts views Thread by Markus Ernst | last post: by
40 posts views Thread by maya | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.