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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:51:21+00:00 2026-06-01T07:51:21+00:00

I have a table in which each of its TD contains image (more precisely,

  • 0

I have a table in which each of its TD contains image (more precisely, emoticon) which have same height. Oddly, they are not properly aligned. One emoticon is at the top, the other is at the middle, and the other is at bottom.

Here is a picture to make the explanation easier:

https://i.stack.imgur.com/UeVpY.png

I tried to copy the HTML structure to jsfiddle, but it is properly aligned in there. So I believe this is a CSS problem.

However, my try to modify everything results in no avail. I cannot make it aligned properly. I tried vertical-align:middle and tried to set the padding and margin but I cannot make it align properly.

Is there any help to do this?

EDIT: it turns out that this CSS is the one that is making the problem:

.emotlist {
overflow: auto;
height: 175px;
width: 120px;
}

When I remove the overflow: auto, it displays as I want it to be. But the problem here: I need the overflow:auto to make scrollbar, so in case there are more emoticons added to the table, it will not exceed the defined-height.

EDIT 2: I guess it is not the overflow: auto which is causing the problem, since it is just working fine in the fiddle (as demonstrated by Sheilender)

Disclaimer: I cannot change the HTML structure (in case someone suggest so). I don’t have access to the HTML template and what I can do is only style it via CSS.

.

  • 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-01T07:51:22+00:00Added an answer on June 1, 2026 at 7:51 am

    Looks to me like the   after each image is being broken to a new line hence the problems.

    Try:

    .emotlist table tr td {
       width: 25px;
    }
    

    This should make the cell wide enough to accomodate the image and the  

    or

    .emotlist table tr td {
        white-space: nowrap;
    }
    

    To prevent the cell from breaking any lines.

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

Sidebar

Related Questions

I have a table called restaurants which contains each restaurant information, I want to
I have a table which is being dynamically populated, each row contains two textfields
Ok, I have a table which contains multiple rows. Each row contains some data
I have different table rows, each of it contains some information text which should
i have table question (mysql with php) which contains question,category(multiple) and subcat(multiple) its belong.
I have a recursive table in which each record has an ID and a
I have a DB table in which each row has a randomly generated primary
I have a html table in which each line ( <tr> ) represents a
I have a Categories table in which each category has a ParentId that can
I have a table which is zebra-striped (different background color for each odd rows).

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.