4 ms·
It's possible to do by adding a padding-right as well as position:relative on the label, and then position:absolute on the input to place it over the padded are
by mmatants 13y ago
It's possible to do by adding a padding-right as well as position:relative on the label, and then position:absolute on the input to place it over the padded area.
Not the easiest CSS to write, but I strongly prefer clean markup (at a cost of hackish CSS) to hackish markup.
- tracker1 13y agoI don't really consider that cleaner markup... Now you have a single element containing a text now and another element that can not be transverse independently... As opposed to an e extra tag. You could do the label with a span and the input y though, and then mark your CSS that way as a convention... But then you aren't using a bad framework meant to have broader interoperability in mind.