Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.77 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why are my CSS properties being overridden/ignored?
  2. <body>
  3.   <section id="content">
  4.     <article>
  5.       <ul class="posts-list">
  6.         <li class="post-item">
  7.           <h2>[post title]</h2>
  8.           <p class="item-description">...</p>
  9.           <p class="item-meta">...</p>
  10.         </li>
  11.         ...
  12.       </ul>
  13.     </article>
  14.   </section>
  15. </body>
  16.        
  17. #content {
  18.   color: #000;
  19.   margin-left: 300px;
  20.   max-width: 620px;
  21.   padding: 0px 10px;
  22.   position: relative;
  23. }
  24.  
  25. #content p,
  26. #content li {
  27.   color: #111;
  28.   font: 16px / 24px serif;
  29. }
  30.        
  31. li.post-item > * {
  32.   margin: 0px;
  33. }
  34.  
  35. .item-description {
  36.   color: #FFF;
  37. }
  38.  
  39. .item-meta {
  40.   color: #666;
  41. }
  42.        
  43. #content li.post-item > * {
  44.   margin: 0px;
  45. }
  46.  
  47. #content .item-description {
  48.   color: #FFF;
  49. }
  50.  
  51. #content .item-meta {
  52.   color: #666;
  53. }