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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:54:57+00:00 2026-06-01T05:54:57+00:00

hi am new to the jQuery lib and so far very cool i have

  • 0

hi am new to the jQuery lib and so far very cool i have just hit a speed bump. i would like to display three elements. an < h4 > tag a < p > tag another < h4 > tag all within a < ul >. so when i open a heading it will display an list and each line will have a name an description and then the price. if i leave out the float it displays them under each other.

<div id="accordion">
<h3><a href="#">BBEEE Toolkit</a></h3>
<div >
  <ul>
    <li><h4>Very Large Generic</h4><p>Revenue greater than 1.5 billion</p><h4>Proposal on request</h4></li>
    <li><h4>Large Generic</h4><p>Revenue between 650 million and 1.5 billion</p><h4>67,980.00</h4></li>
    <li><h4>Medium Generic</h4><p>Revenue between 250 million and 650 million</p><h4>45,322.00</h4></li>
    <li><h4>Small-Medium Generic</h4><p>Revenue between 80 million and 250 million</p><h4>30,591.00</h4></li>
    <li><h4>Small Generic</h4><p>Revenue between 35 million and 80 million</p><h4>21,031.00</h4></li>
    <li><h4>QSE</h4><p>Revenue between 5 million and 35 million</p><h4>R14,340.00</h4></li>
    <li><h4>EME</h4><p>Revenue less than R5 million</p><h4>660.00</h4></li>
    <li><h4>Existing scorecard</h4><p>Upload an existing scorecard</p><h4>FREE</h4></li>
  </ul>
</div>

and my css looks like this:

#accordion {
border: 2px solid #eee;
border-radius: 0px 8px 8px 0px;
width: 940px;
height: 502px;
margin: /*top and bottom */5px /*right and left*/auto;
}

#accordion  h4 {
font-size: 16px;
}

#accordion  p {
font-size: 16px;

}

what could i do to align them to look like name description price, and not

name

description

price

next li??

  • 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-06-01T05:54:58+00:00Added an answer on June 1, 2026 at 5:54 am

    h4 and p tags are block items so they will by default take up full width forcing the next item to go below. You can use display: inline to make them act differently.

    h4, p {
        display: inline;
    }
    

    But more to the point you shouldn’t be using h4 tags since they signify headings. Something like this would work better. <li><span class="name">name</span> description <span class="price">price</span></li>

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

Sidebar

Related Questions

I have application that brings response via Ajax and creates 5-20 new jQuery click
Very new to JQuery and MVC and webdevelopment over all. I'm now trying to
I have a document which uses old jQuery and I need new jQuery for
I'm quite new to php and jquery so any help would be much appreciated.
I'm pretty new to require.js and having problems loading i18next.js. main.js require([lib/jquery, lib/i18next, config.i18next,
i have a page after you press button, you see element of lib jquery.knob.js(circle)
When writing a new jQuery plugin is there a straightforward way of checking that
Using jQuery UI 1.8rc3 combined with the new jquery.effects.fade.js code, I've been able to
I've been trying to use the new jquery-ui, and all but the resizable function
Example: var $doesNotYetExistInTheDOM = $('<span/>'); // create new jQuery element // outside of the

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.