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

  • Home
  • SEARCH
  • 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 9125085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:43:11+00:00 2026-06-17T06:43:11+00:00

I am trying to make a media library template in HTML & CSS, where

  • 0

I am trying to make a media library template in HTML & CSS, where I can add images to a table. I wish to add a caption directly underneath the images.

But my output is currently wrong. I get:

enter image description here

The text is aligned wrong, I cannot find a way to get the text directly under and centered underneath the image.

Here is my code template:

<div align="center" class="tile_div">
<table class="tile_table">
<tr>
    <td>
        <img class="tile_image" height="60px" width="60px" src="default.jpg"/> 
        <p class="tile_p">Sound</p>
    </td>
</tr>
    <td>
        <img class="tile_image" height="60px" width="60px" src="default.jpg"/> 
        <p class="tile_p">Sound</p>
    </td>
</tr>
    <td>
        <img class="tile_image" height="60px" width="60px" src="default.jpg"/> 
        <p class="tile_p">Sound</p>
    </td>
</tr>
    <td>
        <img class="tile_image" height="60px" width="60px" src="default.jpg"/> 
        <p class="tile_p">Sound</p>
    </td>
</tr>
</tr>
</table>

My CSS is:

.tile_div{
    text-align: center;
    width: 100%;
}

.tile_table{
    border-collapse:collapse;
}

.tile_table tr, td{
}

.tile_image{
    padding: 5px 5px 5px 5px;
    margin: 5px 5px 5px 5px;
}

.tile_p{
    display: inline;
}

Can anyone help with a solution to this problem?

  • 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-17T06:43:12+00:00Added an answer on June 17, 2026 at 6:43 am

    just to clear up, the problem was closing the div tag metioned by @ZoltanToth in the main comments.

    Here is the code that works and creates my desired output:

    HTML:

            <div align="center" class="tile_div">
                <table class="tile_table">
                    <tr>
                        <td>
                            <img class="tile_image" height="100px" width="100px" src="default.jpg"/> 
                            <p class="tile_p">Sound</p>
                        </td>
                        <td>
                            <img class="tile_image" height="100px" width="100px" src="default.jpg"/> 
                            <p class="tile_p">Sound</p>
                        </td>
                        <td>
                            <img class="tile_image" height="100px" width="100px" src="default.jpg"/> 
                            <p class="tile_p">Sound</p>
                        </td>
                    </tr>
                </table>
            </div>
    

    CSS :

    .tile_div{
        text-align: center;
        width: 100%;
    }
    
    .tile_table{
        border-collapse:collapse;
    }
    
    .tile_table tr, td{
      text-align: center;
    }
    
    .tile_image{
        padding: 3px 5px 0px 3px;
        margin: 5px 5px 0px 5px;
    }
    
    .tile_p{
        line-height: 0px;
    }
    

    Thanks for your input. Thanks C.

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

Sidebar

Related Questions

I'm trying to make an app that can control my IP cameras.VLC media player
I am trying to make a simple media player using the following tutorial: http://www.youtube.com/watch?v=9aJvPPzhyik
I'm trying to make a little app that displays only images from a specific
I'm testing out my CSS at http://flexibletheme.tumblr.com/ and trying to make the website responsive
I'm trying to make VideoDisplay playing media with FlashDevelop . Here's the source of
I'm trying to make an App-wide media-upload which should have the possibility of being
I am trying to make gallery application in which all media file are arranged
I'm trying to make a webcomic RSS feed with Django, but I can't put
I'm trying to make it so a user can upload an avatar to their
I'm trying to make an application, media player using mplayer slave mode. Any clue

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.