Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1050534
    JurgaR
    Participant

    Hello,

    I have been reading in the forums and found (and successfully used) the following code for Table of Contents within the same page (see below). However, the table of contents is very narrow, not all of the text is visible and it just looks strange. Is it possible to somehow make it full width (responsive, so that it’s full width, no matter which device is used). I am using widget area on the blog posts, just to be clear when I say full width, I mean as wide as the rest of the post :).

    Thanks a lot!
    Best regards, Jurga

    <div class=”x-toc”>
    <h4 class=”h-toc”>Table of Contents</h4>
    <ul class=”unstyled cf”>
    <li class=”x-toc-item”>I. Planning
    <li class=”x-toc-item”>II. Research
    <li class=”x-toc-item”>III. Content + Messaging
    <li class=”x-toc-item”>IV. Design
    <li class=”x-toc-item”>V. Evaluation
    <li class=”x-toc-item”>VI. Testing
    <li class=”x-toc-item”>VII. Launch
    <li class=”x-toc-item”>VIII. Support

    </div>

    #1050571
    Christopher
    Moderator

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1050699
    JurgaR
    Participant

    The post is not online yet. My website is http://fullsuitcase.com
    So you need login credentials as well?
    Thanks a lot!
    Jurga

    #1050862
    Christian
    Moderator

    Please give us the URL of the post where you’ve setup TOC and also access to your WordPress admin.

    Thanks.

    #1051046
    JurgaR
    Participant
    This reply has been marked as private.
    #1051142
    Rupok
    Member

    Hi there,

    Thanks for updating. You are not using Cornerstone so it’s kinda infeasible to control layout as you can’t add custom class easily unless you edit HTML. However you can add this under Custom > CSS in the Customizer.

    .x-toc {
      max-width: 450px;
      width: 100%;
    }

    Let’s change the max-width if needed or take it off. I have added that to restrict the width for larger screens.

    Cheers!

    #1051267
    JurgaR
    Participant

    Super! Thanks a lot!

    #1051729
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1050534 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>