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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:32:06+00:00 2026-06-06T10:32:06+00:00

It seems like some tables are inheriting styles that they shouldn’t. I have a

  • 0

It seems like some tables are inheriting styles that they shouldn’t.

I have a custom table class, and I want only tables that use that class to have a 1px width solid border, but for some reason other tables seem to use it randomly.

Here’s the CSS for it:

.my_custom_table td, th { border: 1px solid gray; }

and here’s the markup for a table that uses it for some reason:

<table border="0" cellspacing="0" cellpadding="2" class="customer-info"> ... </table>

I’m thinking the style says “for all td and td under the class .my_custom_table – use 1px solid border”, or am I missing something?

  • 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-06T10:32:07+00:00Added an answer on June 6, 2026 at 10:32 am

    Your CSS will apply to all <th> tags, not just those under the my_custom_table class.

    Try this instead:

    .my_custom_table td, .my_custom_table th { border: 1px solid gray; } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seems like i need some help with a project. I have a routine ,
I'm having some trouble with a SQL Server 2005 database that seems like it's
I'm running SQL Server 2005 and .Net 2.0. I have some tables that need
I have a SQlite3 table that has typeless columns like in this example: CREATE
I have some files on my computer that are in UTF-16, though this seems
Ok so we have some tables in SQL that identifies users by their Guid
I am learning WPF and it seems like some properties like Content are of
It seems like nutch indexes only (some) parse results. It runs the indexing filters
This really seems like a bug to me, but perhaps some databinding gurus can
In asking around and doing some research, it seems like many people are really

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.