3 ms·
I quite doubt there's a way to do overflowing text like that with only CSS without nastiness. Though, someone, correct me if I'm wrong; I'd be fascinated to le
by Groxx 17y ago
I quite doubt there's a way to do overflowing text like that with only CSS without nastiness. Though, someone, correct me if I'm wrong; I'd be fascinated to learn how, if it's possible.
With images, I've managed this: http://dl.dropbox.com/u/363028/temporary/justify_images.html http://dl.dropbox.com/u/363028/temporary/justify_images.html
Though it's giving me a 4px taller container for the images than is needed :\ (forgive me if I'm missing something obvious there) It works on Safari 4 w/o the widths or the height, too, all that's needed are justify, inline, and that spacer (nice catch, that).
edit: via browsershots: http://browsershots.org/http://dl.dropbox.com/u/363028/temporary/justify_images.html http://browsershots.org/http://dl.dropbox.com/u/363028/tempo...
looks pretty consistent, for the most part. Probably breaking on inline-divs where it's failing. (and Opera is the only top-aligning one...? maybe that's a user stylesheet issue.)
- mikepurvis 17y agoYou 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.