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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:24:32+00:00 2026-05-25T01:24:32+00:00

I have a table and I have a tr with a class set to

  • 0

I have a table and I have a tr with a class set to “underRow”.

In CSS I have:

.underRow {
 border-bottom-color: #7a26b9;
 border-bottom-style: solid;
 border-bottom-width: 1px;
}

but the row border doesn’t seem to be changing at all. If I move the class attribute down to the td’s it works fine (but the issue is that I get a space in the middle where the padding is between the cells. I want to avoid this space and have one straight line below the row.

Is there anything wrong with putting CSS border attributes on a row (tr) element?

Here is the rest of the CSS on this table for reference:

.quantityTable {
    border-radius: 5px 5px 5px 5px;
    background-color: #d6b4E1;
    padding: 5px;
    margin-bottom: 5px;
    width: 100%;
    border-width: 2px;
    border-color: #7a26b9;
    border-style: solid;
}
  • 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-05-25T01:24:34+00:00Added an answer on May 25, 2026 at 1:24 am

    No it should work.

    See this: http://jsfiddle.net/jasongennaro/qCzrg/

    Perhaps you need to collapse your borders with

    border-collapse:collapse
    

    Or maybe other styles for the TD is overriding

    Can you show some more code.

    As per your edit:

    (but the issue is that i get a space in the middle where the padding
    is between the cells. I want to avoid this space and have one straight
    line below the row.

    Sounds like you definitely need border-collapse

    You should add it to the style of the table.

    Here’s a bit more about it: http://www.the-art-of-web.com/css/bordercollapse/

    EDIT 2

    Based on the new code and the following comment:

    the issue is that if i use: border-collapse:collapse then the
    border-radius styling doesn’t work anymore

    I am guessing you want something like this

    .quantityTable{
        border-radius: 15px 15px 15px 15px;
        background-color: #d6b4E1;
        margin-bottom: 5px;
        width: 100%;    
    }
    
    .underRow{
        border-bottom-color: #7a26b9;
        border-bottom-style: solid;
        border-bottom-width: 1px;
    }
    
    .underRow:last-child{
        border-bottom:none;
    }
    
    .underRow td{
        padding: 15px;  
    }
    

    Example: http://jsfiddle.net/jasongennaro/qCzrg/1/

    NOTE

    1. I made the radius bigger so you could see it easier.

    2. I also removed the border from the table itself

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

Sidebar

Related Questions

I have a table with multiple <tr> . Some of them has set class
We have 2 tables: Table Authority: public class Authority { public int ID {get;set;}
I have this class called Table: class Table { public string Name { get
I have a table called Users ( class User < ActiveRecord::Base ) and a
I am writing a turbogears2 application. I have a table like this: class Order(DeclarativeBase):
If I have a table in MySQL which represents a base class, and I
Let's say I have a table that represents a super class, students . And
I have a simple database table called Entries: class CreateEntries < ActiveRecord::Migration def self.up
I have a declarative table defined like this: class Transaction(Base): __tablename__ = transactions id
Suppose I have an Orders table in my database and a corresponding model class

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.