I’m attempting to align the text next to the checkbox on this page, however I can’t seem to get it to work:
Here’s a link to the jsFiddle: http://jsfiddle.net/Cbmnf/8/
What I’ve tried:
- Wrapping the text in a selector called
#blank_referrer .textthen;- Applying a negative
margin-topandpadding-top. - Applying
float: left;on both the checkbox and text selector, which completely ruined the display. - Applying
display: inline-block;. - Applying
line-height: 13px(the height of the font) to#blank_referrer.
- Applying a negative
It’s really annoying me that the checkbox isn’t vertically aligned to the centre of the capital “T” in the text.
Any edits, answers, advice would be greatly appreciated!
Try the following CSS definition:
You can now tinker with the
margin-topsetting to get the look you want…