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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:21:41+00:00 2026-06-15T16:21:41+00:00

Hello all I’m just trying to have my border around my table cell right

  • 0

Hello all I’m just trying to have my border around my table cell right around the text…not stretched the length of the entire table. Its the section with the border around it

enter image description here

CSS:

table.content_table {
width: 100%;
margin: 0px;
border-collapse: collapse;
}
table.content_table > tbody > tr > td.results {
border: 2px solid;
background-color: #eeeecc;
font-size: 8pt;
font-weight: bold;
PADDING: 0px;

}

HTML:

    <table class="content_table">
    <br/><br/>
     <h1>Planned Vs Actual Productions Drilldown</h1>


            <tr>
            <td class="results">
         Number of results returned:  ${fn:length(beans)}
        </td>
        </tr>
  • 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-15T16:21:42+00:00Added an answer on June 15, 2026 at 4:21 pm

    give the text a simple span or any other block element like div p … span with inline-block is also a block element which can have a border.

    table.content_table {
      width: 100%;
      margin: 0px;
      border-collapse: collapse;
    }
    .border {
      border: 2px solid;
      background-color: #eeeecc;
      font-size: 8pt;
      font-weight: bold;
      PADDING: 0px;
      display: inline-block;
    }   
    

    Any Element inside a table needs to be in TD so that is is valid html… put another tr > td into your table like this

    <table class="content_table">
    <tr>
       <td>
         <h1>Planned Vs Actual Productions Drilldown</h1>
       </td>
    </tr>
      <tr>
        <td class="results">
            <span class="border">Number of results returned:  ${fn:length(beans)}</span>
        </td>
        </tr>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello all this seems to be my problem I have a table in mysql
Hello all I have a simple Spring application which will not end as there
hello all i am working on a project in which i have a webpage
hello all I have a small dialog which I created dynamically, which has a
Problem Hello all! I have this code which takes my jpg image loops through
Hello all I am newbie to webrtc just started to run my first application
Hello all I have this problem that I can't seem to fix. I've been
hello all i want to retrieve my all the wall post that i have
hello all i have my splash screen which i want to show in landscape
Hello all does anyone know if it's possible or that the UITableviewcells have a

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.