473,386 Members | 1,786 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,386 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 14157
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.