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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:12:37+00:00 2026-06-11T20:12:37+00:00

when i use background-color in my css to change the table background color instead

  • 0

when i use background-color in my css to change the table background color instead of changing the colour of background it is changing the color of the text

here is my css code to style a table

.table_styling1 {
 table-layout:fixed;
 width:100%;  
 height:25px; 
 border:1px solid #ccc; 
 background-color:#8B7D7B;
 border-radius:4px;}

.table_styling1 th {
 padding:4px 6px 6px; 
 background:#444; 
 color:#fff; 
 text-align:center; 
 color:#ccc;}

.table_styling1 td {
 padding:2px 4px 4px; 
 background:#fff; 
 border-bottom:1px solid #ccc;}

 .table_styling1 tr { 
 background-color:#FF83FA;}     

 .table_styling1 tr:hover {
 color:#4876FF;}

what should i change in my code so that i can apply a background-color to my table i even tried using background..it also did not worked

  • 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-11T20:12:38+00:00Added an answer on June 11, 2026 at 8:12 pm
    .table_styling1 {       
       width:50%;
       border: 2px solid black;
       border-collapse:collapse;}
    
    .table_styling1 th{
       padding:4px;
       background:#444;
       color:#fff;}
    
    .table_styling1 td {
       padding:2px 4px 4px;   
       border-bottom:1px solid #ccc;}
    
    .table_styling1 tr:hover {
       background:#4876FF;
       color:#1E1E1E;}                         
    
    .table_styling1 table,th,td {
       border: 1px solid black;}
    

    I read all css properties and found the answer, sorry for asking a wrong question

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

Sidebar

Related Questions

I use the following jquery statements, $(.resultsdiv:odd).css(background-color, #fff); $(.resultsdiv:even).css(background-color, #EFF1F1); $('.resultsdiv').hover(function() { $(this).css('background-color', '#f4f2f2');
I'm trying to use jQuery's hover() to change the background color any TR that
I'm learning css and trying to change background-color of all html except one div
I'm using jQuery to change background-color of even rows of a table: $(table tbody
How to change a background color of jQueryUI Progressbar? Im trying to use: $('#progressbar
How do I use CSS3 gradients for my background-color and then apply a background-image
when i draw text use DC, it always show an backgournd color which is
I have the following jQuery that I'm trying to use to change the background
I want after keyup on input change background-color input into class box , but
I made a site with simple instructions let's say: <html> <head> <style type=text/css> .a120

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.