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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:00:24+00:00 2026-06-04T15:00:24+00:00

Using the css style below will display a list of anchor tag horizontally. But,

  • 0

Using the css style below will display a list of anchor tag horizontally.

But, I cannot seem to get the image and text to display veritcally in each list item. Any suggestion on how to do that.

Thank you

My solution to the problem

<html>
<head>
<style type="text/css">
li
{
display:inline;
}

table
{
display:inline;
}
</style>
</head>
<body>
<ul> 
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">one</a></tr>
</table>
</li> 
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">two</a></tr>
</table>
</li> 
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">three</a></tr>
</table>
</li> 
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">four</a></tr>
</table>
</li> 
<li>
<table>
<tr><a href="#"><img /></a></tr>
<tr><a href="#">five</a></tr>
</table>
</li>
</ul>
</body>
</html>
  • 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-04T15:00:25+00:00Added an answer on June 4, 2026 at 3:00 pm

    You could add <br /> before the text, like this:

    <ul>
      <li><a href="#"><img /><br />one</a></li>
      <li><a href="#"><img /><br />two</a></li>
      <li><a href="#"><img /><br />three</a></li>
      <li><a href="#"><img /><br />four</a></li>
      <li><a href="#"><img /><br />five</a></li>
    </ul>
    

    And change the CSS to this:

    li {
      display: inline-block;
      list-style-type: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created tab style interface using css and javascript with only two tabs
I am using CakePHP 2.0 and I want to load a concrete CSS style
I'm trying to generate a dynamic table using CSS: <html> <head> <style> div.el1, div.el2
Using css (not a inline one, but external stylesheet) how do i override the
I am using below code to get fade in fadeout effect for menus. Presently
I have a feeling that this probably is not possible using strictly CSS, but,
I have the css code below along with an image to show it's output.
I'm using the following CSS to add checkmarks before my <li> list items: ul.checkmark
I cannot figure this one out. When using display:table along with display:table-cell , placing
I'll jump to an example. <!DOCTYPE html> <head> <title>Transposing div using CSS</title> <style> div#wrapper

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.