Issues with Content Layout on Category Page – Headings, Lists, Tables, and Dividers

This topic has 5 replies, 2 voices, and was last updated 4 months ago ago by khurram virk

  • Avatar: khurram virk
    khurram virk
    Participant
    July 30, 2025 at 21:32

    Dear Sir,

    Good day to you!

    I’ve encountered a few layout and styling issues on the category page content section, as shown in the following screenshot:
    🔗 Screenshot Link: https://snipboard.io/tKjIfT.jpg

    Here are the specific problems I’d like assistance with:

    Heading Sizes (H2 & H3):
    Both (blue headings) and (black headings) currently appear to have the same font size. I’d like to differentiate them visually. Could you please guide me on how to set different sizes for these headings within the category content area?

    Bullet Lists Overflowing:
    List items (ul) are overflowing outside the content box. How can I ensure that bullets and their text stay properly contained within the content area?

    Table Styling & Responsiveness:
    Tables currently have no visible grid or borders. I’d like to add proper grid lines or borders for clarity.
    Additionally, tables are not responsive on mobile view. Could you assist me in making them mobile-friendly?

    Spacing Above Dividers:
    The dividers appearing above the blue h2 headings (as visible in the screenshot) have no spacing, making the layout look cramped. How can I apply appropriate spacing above and below these dividers?

    Your support in resolving these issues would be greatly appreciated.

    Thank You.

    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    July 31, 2025 at 09:49

    Dear @khurram virk,

    Please find our guidance below for each of the issues you mentioned:

    1. Heading Sizes (H2 & H3):
    To differentiate the H2 (blue) and H3 (black) headings, you can apply custom CSS to adjust their font sizes. For example:

    .category-content h2 {
        font-size: 28px;
        color: #0073e6; /* Blue */
    }
    
    .category-content h3 {
        font-size: 22px;
        color: #000000; /* Black */
    }

    You may adjust the font sizes and colors as needed to suit your design preferences.

    2. Bullet Lists Overflowing:
    To ensure that bullet lists stay within the content area, please use the following CSS:

    .category-content ul {
        padding-left: 20px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    This will help maintain proper alignment and prevent overflow.

    3. Table Styling & Responsiveness:
    To add borders and improve table clarity, you can use:

    .category-content table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .category-content table, 
    .category-content th, 
    .category-content td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    @media screen and (max-width: 768px) {
        .category-content table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }
    }

    4. Spacing Above Dividers:
    To add spacing above and below the dividers, you can apply margin styles:

    .category-content hr {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    Adjust the margin values as needed to achieve the desired spacing.

    Please add the above CSS to your theme’s custom CSS section (Appearance > Customize > Additional CSS) or within your child theme’s stylesheet.

    Should you need further assistance or clarification, feel free to let us know. We’re here to help.

    Best Regards,
    8Theme’s Team

    Avatar: khurram virk
    khurram virk
    Participant
    July 31, 2025 at 11:51

    Dear Sir,

    Thank you for your detailed response and the CSS code provided.

    I have added the suggested CSS into the Additional CSS section as advised. However, unfortunately, the changes are not reflecting on the page. There are no visible updates to the heading sizes, bullet list alignment, table styling, or divider spacing.

    🔗 Screenshot for reference: https://snipboard.io/vzS9Fy.jpg

    Here is the live page link:
    🔗 https://askasolution.com/product-category/fasteners/

    Could you please check if the CSS selectors are correctly targeting the category content or if any theme/page builder styles are overriding them?

    Thank You.

    Avatar: Justin
    Luca Rossi
    Support staff
    July 31, 2025 at 12:10

    Dear @khurram virk,

    We’ve updated the custom CSS codes, can you please add them again?

    
    .term-description.et_second-description h2 {
        font-size: 28px;
        color: #0073e6; /* Blue */
    }
    
    .term-description.et_second-description h3 {
        font-size: 22px;
        color: #000000; /* Black */
    }
    
    .term-description.et_second-description ul {
        padding-left: 20px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        box-sizing: border-box;
    }
    
    .term-description.et_second-description table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .term-description.et_second-description table,
    .term-description.et_second-description th,
    .term-description.et_second-description td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    .term-description.et_second-description hr {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    @media screen and (max-width: 768px) {
        .term-description.et_second-description table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }
    }
    

    Thank you!

    Avatar: khurram virk
    khurram virk
    Participant
    August 16, 2025 at 11:23

    Thanks for the support! My topic “Issues with Content Layout on Category Page – Headings, Lists, Tables, and Dividers” has been successfully resolved.

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Issues with Content Layout on Category Page – Headings, Lists, Tables, and Dividers’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.