CSS Enhancements


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

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


Copy this code and paste it in your HTML
  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;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.