4 ms·
You can do the overflowing labels by given the label box a negative left and right margin. Or a negative right margin and a corresponding relative position. Of
by mikepurvis 17y ago
You can do the overflowing labels by given the label box a negative left and right margin. Or a negative right margin and a corresponding relative position.
Of course, this gives you no guarantee that there wouldn't be two overlapping labels in adjacent products. To test for and prevent that, you would still be on the hook for some JS, but it would be much simpler than the JS that's already in place. Basically just some jQuery to step through the pairs of adjacent objects and check the overlap of the internal spans containing the text.