Angled Paragraph Edge
Posted: Wed Jul 07, 2010 1:11 pm
Can you make an angled paragraph edge with CSS? Example attached, stylishly reproduced with gEdit.
Thanks.
Thanks.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
(function($) {
$(function() {
$('div.angled').each(function(_, d) {
d = $(d);
var l = Math.min(d.width(), d.height());
for (var i = 1; i <= l; ++i) {
$('<div style="width: ' + (i) + 'px; height:1px; float: right;clear:right;"></div>').prependTo(d);
}
});
});
})(jQuery);