Advertisement
alphablossom

countdown timer fix

Oct 12th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. 1st snippet of code is added to style.css, 2nd code snipped is added to functions.php:
  2.  
  3. /* Internet Explorer conditional css for countdown widget
  4. added html class .ieclass for internet explorer
  5. ie styling for countdown widget to display correctly in ie browser
  6. ------------------------------------------------------------ */
  7.  
  8. .ieclass #countdowntimer-2 {
  9. margin-top: 45px;
  10. height: 50px;
  11. }
  12. .ieclass #countdowntimer-2-dashboard {
  13. height: 50px;
  14. }
  15. .ieclass #countdowntimer-2-widget {
  16. background-image: url(images/timer-bkg.jpg);
  17. background-repeat: no-repeat;
  18. padding: 10px 0 0 5px;
  19. background-position: 5px 0;
  20. }
  21. .ieclass .TIE-fighter-tophtml, .TIE-fighter-bothtml {
  22. margin: 0 auto;
  23. padding: 0;
  24. text-align: center;
  25. font-size: 12px;
  26. }
  27. .ieclass .TIE-fighter-dashboard {
  28. height: 27px;
  29. width: 237px;
  30. margin: auto;
  31. padding: 7px 4px 4px 0;
  32. border: none!important;
  33. filter: none!important;
  34. border-radius: none!important;
  35. box-shadow: none!important;
  36. background-color: none!important;
  37. background: none!important;
  38. border-radius: none!important;
  39. }
  40. .ieclass .TIE-fighter-dash {
  41. width: 29px;
  42. height: 23px;
  43. float: left;
  44. margin-left: 13px;
  45. padding-left: 3px;
  46. position: relative;
  47. color: #333;
  48. border: none!important;
  49. background: none!important;
  50. filter: none!important;
  51. box-shadow: none!important;
  52. }
  53. .ieclass .TIE-fighter-weeks_dash {
  54. padding-left: 0;
  55. padding-right: 2px;
  56. margin-left: 9px;
  57. }
  58. .ieclass .TIE-fighter-hours_dash {
  59. padding-left: 5px;
  60. }
  61. .ieclass .TIE-fighter-minutes_dash {
  62. padding-left: 5px;
  63.  
  64. }
  65. .ieclass .TIE-fighter-seconds_dash {
  66. padding-left: 5px;
  67. }
  68. .ieclass .TIE-fighter-tripdash {
  69. width: 49px;
  70. height: 23px;
  71. float: left;
  72. margin-left: 20px;
  73. padding-left: 3px;
  74. position: relative;
  75. color: #333;
  76. border: none!important;
  77. background: none!important;
  78. filter: none!important;
  79. }
  80. .ieclass .TIE-fighter-digit {
  81. font: bold 14pt Verdana;
  82. font-weight: bold;
  83. float: left;
  84. width: 14px;
  85. text-align: center;
  86. position: relative;
  87. height: 30px;
  88. text-shadow: none!important;
  89. }
  90. .ieclass .TIE-fighter-dash_title {
  91. filter: none!important;
  92. display: block;
  93. position: absolute;
  94. left: -32px;
  95. top: -8px;
  96. width:50px;
  97. color: #fff;
  98. text-align: left;
  99. font-size: 8px;
  100. margin: 0;
  101. }
  102. .ieclass span.TIE-fighter-dash_title {
  103. display: none;
  104. }
  105. /* end ie styling */
  106.  
  107. --------------------------------------------------------------------------------------------
  108.  
  109. The following code is added to functions.php to add "ieclass" to IE browsers only:
  110.  
  111. /* add style sheet for Internet Explorer to fix countdown widget display */
  112. /* if browser is ie, add "ieclass" to html for ie specific class to display properly in ie */
  113. add_action('genesis_meta', 'myprefix_ie_stylesheet');
  114. function myprefix_ie_stylesheet() { ?>
  115. <!--[if IE ]> <html class="ieclass"> <![endif]-->
  116. <?php
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement