LawyerMorty

Untitled

May 1st, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.99 KB | None | 0 0
  1.  
  2. body
  3. {
  4. background-image:url("bg.png");
  5. background-repeat:repeat;
  6. }
  7.  
  8. @font-face
  9. {
  10. font-families:myFirstFont;
  11. src: url("font.tff");
  12. }
  13. div
  14. {
  15. font-families:myFirstFont;
  16. }
  17. input.rounded {
  18.  
  19.   border: 1px solid #ccc;
  20.    
  21.   /* Safari 5, Chrome support border-radius without vendor prefix.
  22.    * FF 3.0/3.5/3.6, Mobile Safari 4.0.4 require vendor prefix.
  23.    * No support in Safari 3/4, IE 6/7/8, Opera 10.0.
  24.    */
  25.   -moz-border-radius: 10px;
  26.   -webkit-border-radius: 10px;
  27.   border-radius: 10px;
  28.  
  29.   /* Chrome, FF 4.0 support box-shadow without vendor prefix.
  30.    * Safari 3/4/5 and FF 3.5/3.6 require vendor prefix.
  31.    * No support in FF 3.0, IE 6/7/8, Opera 10.0, iPhone 3.
  32.    * change the offsets, blur and color to suit your design.
  33.    */
  34.   -moz-box-shadow: 2px 2px 3px #666;
  35.   -webkit-box-shadow: 2px 2px 3px #666;
  36.   box-shadow: 2px 2px 3px #666;
  37.  
  38.   /* using a bigger font for demo purposes so the box isn't too small */
  39.   font-size: 20px;
  40.  
  41.   /* with a big radius/font there needs to be padding left and right
  42.    * otherwise the text is too close to the radius.
  43.    * on a smaller radius/font it may not be necessary
  44.    */
  45.   padding: 4px 10px;
  46.  
  47.   /* only needed for webkit browsers which show a rectangular outline;
  48.    * others do not do outline when radius used.
  49.    * android browser still displays a big outline
  50.    */
  51.   outline: 0;
  52.  
  53.   /* this is needed for iOS devices otherwise a shadow/line appears at the
  54.    * top of the input. depending on the ratio of radius to height it will
  55.    * go all the way across the full width of the input and look really messy.
  56.    * ensure the radius is no more than half the full height of the input,
  57.    * and the following is set, and everything will render well in iOS.
  58.    */
  59.   -webkit-appearance: none;
  60.  
  61. }
  62.  
  63. input.rounded:focus {
  64.  
  65.   /* supported IE8+ and all other browsers tested.
  66.    * optional, but gives the input focues when selected.
  67.    * change to a color that suits your design.
  68.    */
  69.   border-color: #339933;
  70.  
  71. }
Advertisement
Add Comment
Please, Sign In to add comment