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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:58:21+00:00 2026-06-06T05:58:21+00:00

It doesn’t seem to be a different requirement but just couldn’t get it done,

  • 0

It doesn’t seem to be a different requirement but just couldn’t get it done, here is my html page: http://www.xiexianhui.com/baxjoomla15/index0.html

If you open the page and check the source code, you will see:

tr.spaceUnder > td
{
  padding-bottom: -0.5em;
}

that’s used to control the spacing between rows in table. It works fine if I NEED MORE SPACE but fails to work if I NEED LESS SPACE. How do I decrease the space in my page?

In some case I also need to make the images re-sizable, how do I do it?

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

    padding cannot be negative.
    Set it to be 0, try to add cellpadding=0 cellspacing=0 to your <table> tag, like
    <table cellspacing=0 cellpadding=0>...</table>
    Apply it to each table. Then, apply margin: 0; padding: 0; to each table’s style.
    By the way, I would suggest you to display the td tags without images, with 1 pixel border width to fit them exactly as you like. Then, when they are fine, you could add the images.

    If you want each image to fit the cell exactly,
    you need to have their width sum exactly the same for each cell,
    because the height/width of a row/column gets the value of the largest element in the row/column, unless you set it by hand.

    UPDATE
    Try to apply next lines to your code:

    $( "img" ).each( function(){ this.style.padding = 0; this.style.margin = 0; } )
    $( "td" ).each( function(){ this.style.padding = 0; this.style.margin = 0; } )
    

    That puts us a bit closer to expected result.

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

Sidebar

Related Questions

Doesn't seem to work for me, maybe I just doing it wrong
It doesn't seem possible, but I was hoping someone may be aware of a
Why doesn't Html.ActionLink work in the below code? This is a page in the
It doesn't seem that I can get to any of the usual namespaces using
This doesn't seem to work (=null): @Resource(name = java:app/AppName) private String appName; But a
This doesn't seem to be causing an issue as yet, but it's something I
Doesn't the space occupied by a variable get deallocated as soon as the control
Doesn't matter what I do, I simply can't get this to play a sound
There doesn't seem to be a question for this, and it seems strange that
Doesn't need to be cross-browser at the moment, just webkit. I'm familiar with 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.