HTML Checkbox Alignment
Posted
by
iGuygar
on Stack Overflow
See other posts from Stack Overflow
or by iGuygar
Published on 2012-04-10T17:22:56Z
Indexed on
2012/04/10
17:29 UTC
Read the original article
Hit count: 191
Test Page URL: http://www.guygar.com/inception/ultra/indexCopy.html
I am new to this and searching SO I found the following solution for alignment between text and Checkbox:
<div style="border-bottom:1px solid black; padding:4px; background-color:#003b5a;">
<span style="font-weight:bold;">Back to the Roots</span>
<form>
<input type="checkbox" value="header" style="float:right; vertical-align: middle; margin-top: -15px;" />
<label></label>
</form>
</div>
While this works in IE9, it does not work in Chrome or Firefox.
Could you please help me with this?
Thank you.
© Stack Overflow or respective owner