vertical align of checkbox in html/css

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • realin
    Contributor
    • Feb 2007
    • 254

    vertical align of checkbox in html/css

    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


    Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.



    i tried doing
    [CODE=CSS]vertical-align:middle;[/CODE]
    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]
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Link .

    Comment

    • robin1983
      New Member
      • Oct 2007
      • 99

      #3
      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.
      Originally posted by realin
      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


      Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.



      i tried doing
      [CODE=CSS]vertical-align:middle;[/CODE]
      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]

      Comment

      • Fisher ma
        New Member
        • Nov 2007
        • 9

        #4
        In fact,vertical-align is used for tables,it is useless in divs.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          To the contrary, vertical-align is not for tables or divs. It is for inline elements.

          Comment

          • pravinnweb
            New Member
            • Dec 2007
            • 18

            #6
            Originally posted by realin
            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


            Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.



            i tried doing
            [CODE=CSS]vertical-align:middle;[/CODE]
            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;"

            Comment

            Working...