How can I show all YouTube videos with their descriptions expanded by default?












2














I think the curator script dictates the CSS size but I can't get it just right.



Here in this jsfiddle you'll see:
https://jsfiddle.net/supplement/fmjrvsze/1/



It may be easier to look at it directly on the website:
https://www.mailmyprescriptions.com



Where it displays the content the top two YouTube videos have the Read more buttons and the bottom two are fully expanded.



I want all four (all even when you use the Next buttons) on the page to be fully expanded and not have the Read more button at all.



I've tried adjusting the padding-top from 4em to 0em and I got it almost correct but there was still a bit of transparent haze.



.crt-post-v2.crt-post-max-height .crt-post-max-height-read-more {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.5em;
padding-top: 4em;
margin: 0em;
background: transparent;
background: -webkit-gradient(left top, left bottom, color-stop(0%, transparent), color-stop(50%, #efefef));
background: linear-gradient(to bottom, transparent 0%, #efefef 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}


Don't do much front end or mobile development anymore so any and all help would be greatly appreciated. Help please.



I want them to all look like this:



enter image description here










share|improve this question
























  • Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
    – Supplement
    Nov 23 '18 at 17:16
















2














I think the curator script dictates the CSS size but I can't get it just right.



Here in this jsfiddle you'll see:
https://jsfiddle.net/supplement/fmjrvsze/1/



It may be easier to look at it directly on the website:
https://www.mailmyprescriptions.com



Where it displays the content the top two YouTube videos have the Read more buttons and the bottom two are fully expanded.



I want all four (all even when you use the Next buttons) on the page to be fully expanded and not have the Read more button at all.



I've tried adjusting the padding-top from 4em to 0em and I got it almost correct but there was still a bit of transparent haze.



.crt-post-v2.crt-post-max-height .crt-post-max-height-read-more {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.5em;
padding-top: 4em;
margin: 0em;
background: transparent;
background: -webkit-gradient(left top, left bottom, color-stop(0%, transparent), color-stop(50%, #efefef));
background: linear-gradient(to bottom, transparent 0%, #efefef 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}


Don't do much front end or mobile development anymore so any and all help would be greatly appreciated. Help please.



I want them to all look like this:



enter image description here










share|improve this question
























  • Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
    – Supplement
    Nov 23 '18 at 17:16














2












2








2







I think the curator script dictates the CSS size but I can't get it just right.



Here in this jsfiddle you'll see:
https://jsfiddle.net/supplement/fmjrvsze/1/



It may be easier to look at it directly on the website:
https://www.mailmyprescriptions.com



Where it displays the content the top two YouTube videos have the Read more buttons and the bottom two are fully expanded.



I want all four (all even when you use the Next buttons) on the page to be fully expanded and not have the Read more button at all.



I've tried adjusting the padding-top from 4em to 0em and I got it almost correct but there was still a bit of transparent haze.



.crt-post-v2.crt-post-max-height .crt-post-max-height-read-more {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.5em;
padding-top: 4em;
margin: 0em;
background: transparent;
background: -webkit-gradient(left top, left bottom, color-stop(0%, transparent), color-stop(50%, #efefef));
background: linear-gradient(to bottom, transparent 0%, #efefef 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}


Don't do much front end or mobile development anymore so any and all help would be greatly appreciated. Help please.



I want them to all look like this:



enter image description here










share|improve this question















I think the curator script dictates the CSS size but I can't get it just right.



Here in this jsfiddle you'll see:
https://jsfiddle.net/supplement/fmjrvsze/1/



It may be easier to look at it directly on the website:
https://www.mailmyprescriptions.com



Where it displays the content the top two YouTube videos have the Read more buttons and the bottom two are fully expanded.



I want all four (all even when you use the Next buttons) on the page to be fully expanded and not have the Read more button at all.



I've tried adjusting the padding-top from 4em to 0em and I got it almost correct but there was still a bit of transparent haze.



.crt-post-v2.crt-post-max-height .crt-post-max-height-read-more {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
padding-bottom: 0.5em;
padding-top: 4em;
margin: 0em;
background: transparent;
background: -webkit-gradient(left top, left bottom, color-stop(0%, transparent), color-stop(50%, #efefef));
background: linear-gradient(to bottom, transparent 0%, #efefef 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#000000', GradientType=0);
}


Don't do much front end or mobile development anymore so any and all help would be greatly appreciated. Help please.



I want them to all look like this:



enter image description here







javascript html css mobile stylesheet






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 19:03









Bharata

8,07461131




8,07461131










asked Nov 19 '18 at 16:50









Supplement

320620




320620












  • Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
    – Supplement
    Nov 23 '18 at 17:16


















  • Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
    – Supplement
    Nov 23 '18 at 17:16
















Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
– Supplement
Nov 23 '18 at 17:16




Hi @Bharata Please find code in code pen now and thank you for your help. codepen.io/radzikowski/pen/JevGNd
– Supplement
Nov 23 '18 at 17:16












3 Answers
3






active

oldest

votes


















1





+500









There is an inline max-height:316px style, which is causing this.



Here is the complete solution. check out the below codepen.



https://codepen.io/onejeet/pen/NEMxVe



$('.crt-post-c').css('max-height','500px');

$('.crt-post-read-more-button').css('display','none');
$('.crt-post-max-height-read-more').css('background','none');





share|improve this answer































    2














    I think all you have to do is remove that display:block; and then set a new max-height to whatever is appropriate. 600px or something






    share|improve this answer





















    • That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
      – Supplement
      Nov 23 '18 at 15:04



















    2














    You have to change the following values in CSS: max-height and min-height values on all elements with class .crt-post-c and display values on all elements with class .crt-post-max-height-read-more like follows:



    var crtPosts = document.querySelectorAll('.crt-post-c'),
    crtPostsReadMore = document.querySelectorAll('.crt-post-max-height-read-more');

    for(var i = crtPosts.length; i--;)
    {
    crtPosts[i].style.maxHeight = '800px';
    crtPosts[i].style.minHeight = '400px';
    }
    for(var i = crtPostsReadMore.length; i--;)
    crtPostsReadMore[i].style.display = 'none';


    Here is the CodePen.
    I hope this is what you want.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379262%2fhow-can-i-show-all-youtube-videos-with-their-descriptions-expanded-by-default%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1





      +500









      There is an inline max-height:316px style, which is causing this.



      Here is the complete solution. check out the below codepen.



      https://codepen.io/onejeet/pen/NEMxVe



      $('.crt-post-c').css('max-height','500px');

      $('.crt-post-read-more-button').css('display','none');
      $('.crt-post-max-height-read-more').css('background','none');





      share|improve this answer




























        1





        +500









        There is an inline max-height:316px style, which is causing this.



        Here is the complete solution. check out the below codepen.



        https://codepen.io/onejeet/pen/NEMxVe



        $('.crt-post-c').css('max-height','500px');

        $('.crt-post-read-more-button').css('display','none');
        $('.crt-post-max-height-read-more').css('background','none');





        share|improve this answer


























          1





          +500







          1





          +500



          1




          +500




          There is an inline max-height:316px style, which is causing this.



          Here is the complete solution. check out the below codepen.



          https://codepen.io/onejeet/pen/NEMxVe



          $('.crt-post-c').css('max-height','500px');

          $('.crt-post-read-more-button').css('display','none');
          $('.crt-post-max-height-read-more').css('background','none');





          share|improve this answer














          There is an inline max-height:316px style, which is causing this.



          Here is the complete solution. check out the below codepen.



          https://codepen.io/onejeet/pen/NEMxVe



          $('.crt-post-c').css('max-height','500px');

          $('.crt-post-read-more-button').css('display','none');
          $('.crt-post-max-height-read-more').css('background','none');






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 24 '18 at 5:53

























          answered Nov 23 '18 at 15:51









          OneJeet

          952310




          952310

























              2














              I think all you have to do is remove that display:block; and then set a new max-height to whatever is appropriate. 600px or something






              share|improve this answer





















              • That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
                – Supplement
                Nov 23 '18 at 15:04
















              2














              I think all you have to do is remove that display:block; and then set a new max-height to whatever is appropriate. 600px or something






              share|improve this answer





















              • That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
                – Supplement
                Nov 23 '18 at 15:04














              2












              2








              2






              I think all you have to do is remove that display:block; and then set a new max-height to whatever is appropriate. 600px or something






              share|improve this answer












              I think all you have to do is remove that display:block; and then set a new max-height to whatever is appropriate. 600px or something







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 20 '18 at 19:28









              getData

              234




              234












              • That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
                – Supplement
                Nov 23 '18 at 15:04


















              • That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
                – Supplement
                Nov 23 '18 at 15:04
















              That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
              – Supplement
              Nov 23 '18 at 15:04




              That seemed to work for individual youtube box but not all of them. I need them all to be fully expanded.
              – Supplement
              Nov 23 '18 at 15:04











              2














              You have to change the following values in CSS: max-height and min-height values on all elements with class .crt-post-c and display values on all elements with class .crt-post-max-height-read-more like follows:



              var crtPosts = document.querySelectorAll('.crt-post-c'),
              crtPostsReadMore = document.querySelectorAll('.crt-post-max-height-read-more');

              for(var i = crtPosts.length; i--;)
              {
              crtPosts[i].style.maxHeight = '800px';
              crtPosts[i].style.minHeight = '400px';
              }
              for(var i = crtPostsReadMore.length; i--;)
              crtPostsReadMore[i].style.display = 'none';


              Here is the CodePen.
              I hope this is what you want.






              share|improve this answer




























                2














                You have to change the following values in CSS: max-height and min-height values on all elements with class .crt-post-c and display values on all elements with class .crt-post-max-height-read-more like follows:



                var crtPosts = document.querySelectorAll('.crt-post-c'),
                crtPostsReadMore = document.querySelectorAll('.crt-post-max-height-read-more');

                for(var i = crtPosts.length; i--;)
                {
                crtPosts[i].style.maxHeight = '800px';
                crtPosts[i].style.minHeight = '400px';
                }
                for(var i = crtPostsReadMore.length; i--;)
                crtPostsReadMore[i].style.display = 'none';


                Here is the CodePen.
                I hope this is what you want.






                share|improve this answer


























                  2












                  2








                  2






                  You have to change the following values in CSS: max-height and min-height values on all elements with class .crt-post-c and display values on all elements with class .crt-post-max-height-read-more like follows:



                  var crtPosts = document.querySelectorAll('.crt-post-c'),
                  crtPostsReadMore = document.querySelectorAll('.crt-post-max-height-read-more');

                  for(var i = crtPosts.length; i--;)
                  {
                  crtPosts[i].style.maxHeight = '800px';
                  crtPosts[i].style.minHeight = '400px';
                  }
                  for(var i = crtPostsReadMore.length; i--;)
                  crtPostsReadMore[i].style.display = 'none';


                  Here is the CodePen.
                  I hope this is what you want.






                  share|improve this answer














                  You have to change the following values in CSS: max-height and min-height values on all elements with class .crt-post-c and display values on all elements with class .crt-post-max-height-read-more like follows:



                  var crtPosts = document.querySelectorAll('.crt-post-c'),
                  crtPostsReadMore = document.querySelectorAll('.crt-post-max-height-read-more');

                  for(var i = crtPosts.length; i--;)
                  {
                  crtPosts[i].style.maxHeight = '800px';
                  crtPosts[i].style.minHeight = '400px';
                  }
                  for(var i = crtPostsReadMore.length; i--;)
                  crtPostsReadMore[i].style.display = 'none';


                  Here is the CodePen.
                  I hope this is what you want.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 23 '18 at 18:12

























                  answered Nov 23 '18 at 18:05









                  Bharata

                  8,07461131




                  8,07461131






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379262%2fhow-can-i-show-all-youtube-videos-with-their-descriptions-expanded-by-default%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      MongoDB - Not Authorized To Execute Command

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                      How to fix TextFormField cause rebuild widget in Flutter