Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 722365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:58:52+00:00 2026-05-14T05:58:52+00:00

Alright, I’m having some issues and I believe it’s a CSS one. Here is

  • 0

Alright, I’m having some issues and I believe it’s a CSS one.
Here is what I’m working on currently: http://www.notedls.com/demo/

Focusing on the News accordion menu.
The idea here is to have a small image (50×50 with padding) and then a huge headline next to it. When the user clicks the headline, it expands to the article. If the user wants to read comments or make a comment themselves they can then click the View Comments to expand it even further.

The issue I’m having (if it isn’t clear) is the spacing with the image and the text. I could simply just increase the height of the ui.accordion-acc or -left to make everything fit, but that doesn’t solve the issue. If you notice when you click on the first expansion of Headline 1, it will wrap View Comments underneath the image. This is something I don’t want, I’ve tried separating these elements into additional divs and even floating, but its just not working. Essentially, I want blank space infinitely underneath the image for however long the article+comments may take the field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:58:53+00:00Added an answer on May 14, 2026 at 5:58 am

    Try adding this CSS:

    ul#acc1 .acc1 { padding-left: 50px; } /* headline */
    ul#acc1 > li > div { padding-left: 55px; } /* text block under headline */
    ul#acc1 ul li { padding-left: 0; width: 487px; } /* View Comments */
    ul#acc1 ul li div { padding-left: 20px; } /* text here under view comments */
    

    I had to reduce the block size of the view comments since it was pushing out to the right. Adjust the 50px, 55px, 487px ( set width of 542px minus 55px ) and 20px ( just indenting the comment a little more ) to match the thumbnail size.


    Well the problem is there is an accordion within an accordion, so when you add the generic accordion CSS classes like ul.ui-accordion-container li a.ui-accordion-link it affects both levels. This is why the comments moved down 62px.

    You already have more specific classes you could use… try this ul.ui-accordion-container li a.acc1 but I wouldn’t recommend adding a height to the link, but instead add it to the <h1> to match the thumbnail height. So try this:

    h1 {
     float: left;
     margin: 0px;
     padding: 1px;
     font-size: 30px;
     color: #9667cc;
     height: 65px;
    }
    ul.ui-accordion-container li a.acc1 { 
     display: block; 
     padding-left: 5px; 
     margin-right: 3px; 
     height: 62px;
     color: #000; 
     text-decoration: none; 
     line-height: 28px; 
    }
    ul.ui-accordion-container li a.acc2 { 
     line-height: 28px; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.