CSS tables?

Looking for a way to display this in one line horizontally across the top of the page, instead of down the page. Just have a look and you will see what I mean. I want the varities of peppers to be all together on one line, with the H tags and pepper names.


http://www.forgeinfinity.com/canam/hot-jalapeno-peppers.html
fadercreepAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

duncanb7Commented:
just use

your tag   {
display:inline;
}

that will display on items in your tag in horizontally, for example,

<ul>
<li>A</li>
<li>B</li>
</ul>

so
ul {

display:inline;

}

output will be  A B

not
A
B

Duncan
0
Julian HansenCommented:
You can try this

1. Change your <ul> to
<ul id="pepper-list">

Open in new window

2. Add the following to your style sheet
#pepper-list {
    list-style: none;
}
#pepper-list li:before {
    content: "-";
    padding: 0 5px;
}
#pepper-list li:first-child:before {
    content: "";
    padding: 0;
}
#pepper-list li {
    display: inline-block;
}

Open in new window


If you don't want the hyphens in between the items then
#pepper-list {
    list-style: none;
}
#pepper-list li {
    padding: 0 5px;
}
#pepper-list li:first-child {
    padding: 0;
}
#pepper-list li {
    display: inline-block;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.