Labels |
Added:
?
|
@nternetinspired Seth, can I ask for your expertise here? You have any good trick for this one?
Labels are, by default, block-level elements so they fill the width of their container. The tooltip is centred over the label element.
Really, this is a result of poor design, applying a tooltip to a label in a horizontal form wasn't envisaged by the Bootstrap team, clearly, and for good reason I'd say.
The technical fix (untested) is to force labels with tooltips, inside horizontal forms to be inline-block elements instead, eg:
.form-horizontal .hasTooltip {display: inline-block;}
However, I would suggest that, in this instance, a far better solution is to remove the tool-tips from those labels. Does anyone require a tool-tip explaining 'name, 'subject', 'email' or 'message' in the context of a contact form? No, they don't.
In many places the labels do need the tip though.
In many places the labels do need the tip though.
Agreed. Just not here…
Thanks @nternetinspired for the quick solution. I think your approach is even better, less code. I’ll test it and i'll report here.
No worries. Yes, I always prefer solutions that require less code too :)
@nternetinspired Seth I updated #5137 to reflect your solution. Thanks again!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-19 21:05:08 |
This might help http://www.bootply.com/61675