rounded corners


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function rounded_corners (selector, quantity) {
  2. var selector = $(selector);
  3. selector.css('position', 'relative');
  4. if ( quantity == 'all' ) {
  5. selector.prepend('<div class="tl"/>');
  6. selector.prepend('<div class="tr"/>');
  7. selector.append('<div class="br"/>');
  8. selector.append('<div class="bl"/>');
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.