Advertisement
Guest User

font-face

a guest
Dec 6th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.85 KB | None | 0 0
  1. body
  2. {
  3. background-color: rgb(230,230,230);
  4. width: 100%;
  5. margin: 0;
  6.  
  7. }
  8.  
  9.  
  10.  
  11. @font-face {
  12.    font-family: 'test';
  13.     src: url('assets/fonts/test.eot');
  14.     src: url('assets/fonts/test.eot?#iefix') format('embedded-opentype'),
  15.          url('assets/fonts/test.woff') format('woff'),
  16.          url('assets/fonts/test.ttf') format('truetype'),
  17.          url('assets/fonts/test.svg#test') format('svg');
  18.     font-weight: normal;
  19.     font-style: normal;
  20. }
  21.  
  22. @media screen and (-webkit-min-device-pixel-ratio:0) {
  23.     @font-face {
  24.         font-family: 'test';
  25.         src: url('assets/fonts/test.svg#test') format('svg');
  26.  
  27.     }
  28. }
  29.  
  30.  
  31. a{
  32. text-decoration: none;
  33. }
  34.  
  35. #header{
  36.     position: fixed;
  37.     width: 100%;
  38.     height: 80px;
  39.     background-color: rgb(250,250,250);
  40.     -webkit-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  41.     -moz-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  42.     box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  43. }
  44.  
  45. #header .logo{
  46.     position: absolute;
  47.     height: 50px;
  48.     width:600px;
  49.     margin-top: 15px;
  50.     margin-left: 70px;
  51. }
  52.  
  53. #header .logo img{
  54.     height: 100%;
  55. }
  56.  
  57. #header .logo p{
  58.     position: absolute;
  59.     top: 0;
  60.     margin-left: 122px;
  61.     margin-top: 26px;
  62.     font-family:Arial ;
  63.     font-size: 17px;
  64.     color: #009de0;
  65.     }
  66.  
  67. #menu{
  68.     float: right;
  69.     width: auto;
  70.     margin-right: 40px;
  71. }
  72.  
  73. #menu ul{
  74.     list-style-type: none;
  75.     height: 80px;
  76.     margin: 0;
  77.     padding: 0;
  78.     width: auto;
  79. }
  80.  
  81. #menu li{
  82.     float: left;
  83.     display: block;
  84.     height: 80px;
  85. }
  86.  
  87. #menu a{
  88.     height: 80px;
  89.     line-height: 80px;
  90.     padding-left: 40px;
  91.     padding-right: 40px;
  92.     display: block;
  93.     text-decoration: none;
  94.     font-family:'test' ;
  95.     font-size: 18px;
  96.     color: rgb(130,130,130);
  97.  
  98. }
  99.  
  100. #menu li a:hover{
  101.     background-color: rgb(210,210,210);
  102.     color:#fff;
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement