Advertisement
Guest User

Rainbow Journal Example

a guest
Dec 29th, 2022
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.36 KB | None | 0 0
  1. //CSS Style for Rainbow Block
  2.  
  3. .rainbowB {
  4.     background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(208, 222, 33, 1) 20%, rgba(79, 220, 74, 1) 30%, rgba(63, 218, 216, 1) 40%, rgba(47, 201, 226, 1) 50%, rgba(28, 127, 238, 1) 60%, rgba(95, 21, 242, 1) 70%, rgba(186, 12, 248, 1) 80%, rgba(251, 7, 217, 1) 90%, rgba(255, 0, 0, 1) 100%);
  5.     padding: 10px;
  6.     margin: 10px 1%;
  7.     opacity: 0.8;
  8.     border-radius: 10px;
  9. }
  10.  
  11. .rainbowH {
  12.     background: rgb(238, 238, 238);
  13.     padding: 10px;
  14.     margin: 0px;
  15.     opacity: 0.9;
  16. }
  17.  
  18. .rainbowH h5 {
  19.     padding: 0px;
  20.     margin: 0px;
  21.     font-size: 200%;
  22. }
  23.  
  24. .rainbowH .fa-solid.fa-stars {
  25.     background: -webkit-linear-gradient(0deg, rgba(255, 0, 0, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(208, 222, 33, 1) 20%, rgba(79, 220, 74, 1) 30%, rgba(63, 218, 216, 1) 40%, rgba(47, 201, 226, 1) 50%, rgba(28, 127, 238, 1) 60%, rgba(95, 21, 242, 1) 70%, rgba(186, 12, 248, 1) 80%, rgba(251, 7, 217, 1) 90%, rgba(255, 0, 0, 1) 100%);
  26.     -webkit-background-clip: text;
  27.     -webkit-text-fill-color: transparent;
  28. }
  29.  
  30. .rainbowC {
  31.     background: rgb(238, 238, 238);
  32.     padding: 10px;
  33.     margin: 10px 0px 0px 0px;
  34.     opacity: 0.9;
  35. }
  36.  
  37. //HTML Template for Rainbow Block
  38.  
  39. <div class="rainbowB">
  40. <div class="rainbowH">
  41. <h5><em class="fa-solid fa-stars">&nbsp;</em> Box Header Here</h5>
  42. </div>
  43. <div class="rainbowC">Box content here.</div>
  44. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement