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 7085601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:26:41+00:00 2026-05-28T07:26:41+00:00

I have a bullet list as below: <ul> <li> text1 here </li> <li> text2

  • 0

I have a bullet list as below:

<ul>
 <li>
  text1 here    
 </li>
 <li>
  text2 here    
 </li>
 <li>
  text3 here        
 </li>
 <li>
  text4 here        
 </li>
 <li>
  text5 here        
 </li>
 <li>
  text6 here        
 </li>
 <li>
  text7 here        
 </li>
</ul>

I only show the f1rst 3 bullets, but have a link at the bottom to show the rest if clicked (an accordion type effect). Ideally I would also have a close link to compress it again after it had been expanded.

What is the best way to do this with PHP & can I do this just with CSS?

Thanks

  • 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-28T07:26:42+00:00Added an answer on May 28, 2026 at 7:26 am

    Group link which you want to be hidden in
    Ex.

    <li>Text 1</li>
    <li>Text 2</li>
    <li>Text 3</li>
    <li class="hidden">
     <ul>
      <li>Text 4</li>
      <li>Text 5</li>
      <li>Text 6</li>
     </ul>
    </li>
    

    And use jQuery to attach accordion to it

    jQuery(document).ready(function(){
        $('a#trigger').click(function() {
            $('li ul.hidden').next().toggle('slow');
            return false;
        });
    });
    

    Of course you have to give display: none; to .hidden class
    http://docs.jquery.com/UI/Accordion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where have a i gone wrong here ul.bullet { list-style-image:url('../images/bullet-blue-icon.png');vertical-align:middle;line-height:16px; } ul.bullet li {
I have the following CSS .ul{ list-style-image:url(/images/bullet.png) } My bullet.png is 20 x 20px
[SOLVED]: Applying proper list iteration procedure fixed problem. (Shown below) I currently have a
I have an unordered list with different bullet images and i'm trying to align
I have the following mark up <ul> <li>this is bullet list</li> <li>this is another
I have made a list of bullet points with icons, but i cant get
I have this <ul> <ul id=select_opts class=bullet-list style=margin-left:15px;></ul> This javascript code which is meant
Do the webkit, opera or internet explorer browsers have similiar property to -moz-list-bullet ?
For an XML file I am creating I have data that contains a bullet
I have a basic unordered list in HTML/CSS as follows... <div class=floatleft> <ul class=help>

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.