Posted By

benjaminpearson on 05/21/09


Tagged

css


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

danielfilho
carriegates


CSS Enhancements


 / Published in: CSS
 

URL: http://davidwalsh.name/css-enhancements-user-experience

Change Text Highlight Color | Prevent Firefox Scrollbar Jump | Print Page Breaks | Attribute-Specific Icons | CSS Pointer Cursors | Prevent Safari Resizeable Text areas

  1. ::selection { background:#c3effd; color:#000; /* Safari and Opera */ }
  2. ::-moz-selection { background:#c3effd; color:#000; /* Firefox */ }
  3.  
  4. html { overflow-y:scroll; }
  5.  
  6. .page-break { page-break-before:always; }
  7.  
  8. a[href$='.pdf'] { padding:0 20px 0 0; background:transparent url(/graphics/icons/pdf.gif) no-repeat center right; }
  9.  
  10. input[type=submit],label,select,.pointer { cursor:pointer; }
  11.  
  12. resize: none;

Report this snippet  

You need to login to post a comment.