Vertical Alignment of Checkbox (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


BeTheBall -> Vertical Alignment of Checkbox (9/29/2004 12:02:04)

Is there a CSS trick to get a check box to line up better with the subsequent text? Here is a screenshot of what I have. What I would like is for the bottom of the checkbox to be inline with the bottom of the text.

[image]local://upfiles/5648/C431BF08F78944BC8315CB2E389763C1.gif[/image]




c1sissy -> RE: Vertical Alignment of Checkbox (9/30/2004 8:49:33)

Try using float.

If you can post a link to the page and some of the css and your code, it would be a bit easier to tell how you are setting up the page.




BeTheBall -> RE: Vertical Alignment of Checkbox (9/30/2004 21:23:48)

I am not using CSS, but thought I could use a snippet on this particular element. The page is on an Intranet, so can't provide a link, but that's how all check boxes done in FP end up looking. I have added a style attribute to designate the size, but was hoping there was also some sort of alignment attribute as well. Correct me if I am wrong, as I am CSS illiterate, but isn't the <style> tag a CSS element?




c1sissy -> RE: Vertical Alignment of Checkbox (10/1/2004 22:43:06)

Basically what you are trying to do is inline styles. If I am reading you correctly.




BeTheBall -> RE: Vertical Alignment of Checkbox (10/4/2004 10:28:11)

I think so. I don't have a stylesheet, but am trying to assign style attributes where I need them, such as on this checkbox. Is that considered "inline styles"? Are inline styles even related to CSS or am I way off base?




c1sissy -> RE: Vertical Alignment of Checkbox (10/4/2004 11:46:59)

Inline styles are css.

here check this out
http://www.htmlite.com/CSS001c.php
http://www.blooberry.com/indexdot/css/syntax/inclusion/inline.htm
http://www.hitmill.com/dhtml/css/inline.html

I find that sometimes a couple of links to stuff helps to learn it a bit. If you have any more questions please, don't hesitate to ask them!




BeTheBall -> RE: Vertical Alignment of Checkbox (10/4/2004 20:23:51)

Thanks Deb. This suits my eye much better:

style="vertical-align:middle;width:24;height:24;"




c1sissy -> RE: Vertical Alignment of Checkbox (10/5/2004 6:44:22)

No Problem Duane.

If you have any other questions, don't hesitate to post.

Also, I find that reading a few pages with information on them is really very helpful. Don't forget about the links section in here. There are some good ones that people have posted in there.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875