Skip to content
Loading
  • The CSS specification describes a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities (or weights) are calculated and assigned to rules, so that the results are predictable.
  • The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css is registered for use with CSS by RFC 2318 (March 1998). The W3C operates a free CSS validation service for CSS documents.
  • Source:Wikipedia
  •  Css:
     
    1. @import url('https://fonts.googleapis.com/css?family=Raleway');
    2. #text{
    3. display:none;
    4. }
    5. .btn-container{
    6. margin: auto;
    7. height:44px;
    8. width:166.23px;
    9. }
    10. a:active{
    11. color:#ffd323;
    12. }
    13. body{
    14. background-color:aqua;
    15. }
    16. button{
    17. user-select:none;
    18. -webkit-user-select:none;
    19. -moz-user-select:none;
    20. -ms-user-select:none;
    21. cursor:pointer;
    22. border:none;
    23. padding:8px;
    24. font-size:20px;
    25. background:linear-gradient(141deg, #0fb8ad 0%, #1fc8db 51%, #2cb5e8 75%);
    26. color:white;
    27. font-family:cursive;
    28. box-sizing:border-box;
    29. }
    30. body{
    31. font-family:'Raleway',monospace;
    32. font-size:20px;
    33. color:white;
    34. }
     Jquery:
     
    1. $(document).ready(function() {
    2. $("#toggle").click(function() {
    3. var elem = $("#toggle").text();
    4. if (elem == "Read More") {
    5. //Stuff to do when btn is in the read more state
    6. $("#toggle").text("Read Less");
    7. $("#text").slideDown();
    8. } else {
    9. //Stuff to do when btn is in the read less state
    10. $("#toggle").text("Read More");
    11. $("#text").slideUp();
    12. }
    13. });
    14. });
     Hope it will help you. :-)
     
    (src: https://codepen.io/legendaryPower/pen/dvJQvB) 
    +1
  • +1
    Hello Priyana,
     
    By mistakenly I kept your Read More and read less button. After your table design remove your code or Read more and Read less..
    Thank you.. 
    +1