Advertisement
ddye

Button CSS

Jun 3rd, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. span.button-wrapper>a.button,
  2. span.button-wrapper>a.button:link,
  3. span.button-wrapper>input.button,
  4. span.button-wrapper>button.button
  5. {
  6. text-decoration: none;
  7. font-family: "Courier New", Courier, Monospace;
  8. font-style: normal;
  9. font-weight: bold;
  10. font-size: 16px;
  11. text-transform: uppercase;
  12. position:relative;
  13. top:0;
  14. display: inline-block;
  15. vertical-align: middle;
  16. white-space: nowrap;
  17. text-align: center;
  18. color: #FFFFFF !important;
  19. width: auto;
  20. outline: none;
  21. border: none;
  22. background: none;
  23. line-height: 47px;
  24. height: 47px;
  25. margin: 0 !important;
  26. padding: 0 12px !important;
  27. overflow: visible;
  28. cursor: pointer;
  29. text-indent: 0;
  30. }
  31.  
  32. .button img, span.button-wrapper img
  33. {
  34. margin: 0;
  35. vertical-align: middle;
  36. }
  37.  
  38. span.button-wrapper
  39. {
  40. vertical-align: middle;
  41. display: inline-block;
  42. position: relative;
  43. height: 47px;
  44. overflow: hidden;
  45. white-space: nowrap;
  46. text-indent: 0;
  47. width: auto;
  48. max-width:1064px;
  49. margin: 0;
  50. padding: 0;
  51. z-index: 0;
  52. }
  53.  
  54. .firefox2 span.button-wrapper
  55. {
  56. display: block;
  57. float: left;
  58. }
  59.  
  60. input, select, textarea
  61. {
  62. vertical-align: middle;
  63. font-family: "Courier New", Courier, Monospace;
  64. font-style: normal;
  65. font-weight: bold;
  66. font-size: 16px;
  67. text-transform: uppercase;
  68. }
  69.  
  70. div.block select
  71. {
  72. width:96%;
  73. }
  74.  
  75. span.button-wrapper.hover>.button, span.button-wrapper.hover>a.button:link
  76. {
  77. color: #FFFFFF !important;
  78. text-decoration: none !important;
  79. }
  80.  
  81. span.button-wrapper.active>.button, span.button-wrapper.active>a.button:link
  82. {
  83. color: #FF0000 !important;
  84. }
  85.  
  86. span.button-wrapper>span.button-l, span.button-wrapper>span.button-r
  87. {
  88. display: block;
  89. position: absolute;
  90. top: 0;
  91. bottom: 0;
  92. margin: 0;
  93. padding: 0;
  94. background-image: url('images/button.png');
  95. background-repeat: no-repeat;
  96. }
  97.  
  98. span.button-wrapper>span.button-l
  99. {
  100. left: 0;
  101. right: 6px;
  102. background-position: top left;
  103. }
  104.  
  105. span.button-wrapper>span.button-r
  106. {
  107. width: 6px;
  108. right: 0;
  109. background-position: top right;
  110. }
  111.  
  112. span.button-wrapper.hover>span.button-l
  113. {
  114. background-position: center left;
  115. }
  116.  
  117. span.button-wrapper.hover>span.button-r
  118. {
  119. background-position: center right;
  120. }
  121.  
  122. span.button-wrapper.active>span.button-l
  123. {
  124. background-position: bottom left;
  125. }
  126.  
  127. span.button-wrapper.active>span.button-r
  128. {
  129. background-position: bottom right;
  130. }
  131.  
  132. span.button-wrapper input
  133. {
  134. float: none !important;
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement