473,221 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 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 14151
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

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

Similar topics

8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
10
by: Markus Ernst | last post by:
Hi I have a strange problem with vertical-align. The case can be viewed at http://www.brainput.info/geschichte.html. HTML code: <div id="bild"><img src="geschichte.gif" width="274"...
1
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to...
4
by: shivas | last post by:
Hi, I am using vertical-align for a table row, but the Image and the text are not aligned properly. I don't what to align image in the img tag, rather in the row itself I want to align. I want...
5
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up...
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
8
by: ayamopamo | last post by:
Hi- I am trying to center a web page. It seems like this should be very simple to do, but apparently it isn't my day. I have successfully centered the background by calling it in the css body tag:...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.