Advertisement
ndburrus

CSS Selectors @TurkiPSU

Aug 18th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // Use CSS Selectors to Style Elements
  2. // @TurkiPSU
  3.  
  4.  
  5. <style>
  6.  
  7. // .red-text { this needs to be removed
  8. // color:red ; this needs to be removed
  9.  
  10. // to style an element from the style tags, we need h2 {color: blue;}
  11.  
  12. }
  13. </style>
  14. // <h2 class="red-text">CatPhotoApp</h2> the h2 element hould only contain the text CatPhotoApp
  15.  
  16. // finally, we need to add the p element & enclosed text
  17. // Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat // the grass sniff.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement