Fix for chipt4's views block problem

  1. This is the HTML generated by Views [1.x-dev on D5] for my block:
  2.  
  3. <div id="block-views-newreleases" class="block block-views region-even odd region-count-2 count-5 collapsiblock-processed">
  4. <div class="block-top"/>
  5. <div class="block-inner">
  6. <h2 class="title">New Releases</h2>
  7. <div class="content">
  8. <div class="view view-newreleases">
  9. <div class="view-content view-content-newreleases">
  10. <div class="item-list">
  11. <ul>
  12. <li>
  13. <div class="view-item view-item-newreleases">
  14. <div class="view-field view-data-node-title">
  15. <a href="/book/local-history/secret-life-and-brutal-death-mamie-thurman">The Secret Life and Brutal Death of Mamie Thurman</a>
  16. </div>
  17. </div>
  18. </li>
  19. <li>
  20. <div class="view-item view-item-newreleases">
  21. <div class="view-field view-data-node-title">
  22. <a href="/book/local-history/feuding-hatfields-mccoys">The Feuding Hatfields & McCoys</a>
  23. </div>
  24. </div>
  25. </li>
  26. <li>
  27. </li>
  28. <li>
  29. </li>
  30. </ul>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="edit">
  36. </div>
  37. </div>
  38. <div class="block-bottom"/>
  39. </div>
  40.  
  41. This is the CSS that applies to the link that behaves correctly:
  42.  
  43. wp.css (line 1183)
  44. .block-views a:hover {
  45. text-decoration:underline;
  46. }
  47.  
  48. wp.css (line 1097)
  49. .block .view-field a, .block .view-field a:active, .block .view-field a:visited {
  50. color:#333333;
  51. font-size:1.1em;
  52. text-decoration:none;
  53. }
  54.  
  55. This is the CSS that applies to the links that behave incorrectly:
  56.  
  57. wp.css (line 1097)
  58. .block .view-field a, .block .view-field a:active, .block .view-field a:visited {
  59. color:#333333;
  60. font-size:1.1em;
  61. text-decoration:none;
  62. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.