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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:48:34+00:00 2026-06-15T00:48:34+00:00

Why does deleting selector without styles include header for striping table? How can deleting

  • 0

Why does deleting selector without styles include header for striping table? How can deleting empty selector can affect anyithing at all?

Here’s css:

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">

TABLE.spreadsheet //if we delete this selector  useless header becomes striped  too
{   
} //this selector seems useless at all


TABLE.spreadsheet TH
{
    background: #ccc;
    padding: 0px 3px;
    text-align: center;
    vertical-align: text-top;
}

TABLE.spreadsheet TD
{
    text-align: center;
    vertical-align: text-top;
    padding: 0px 3px;
    font-size: 14px;        
}

TABLE.spreadsheet .odd
{
  background-color: #ffefd5;        
}

Here is table:

<table class="spreadsheet" cellspacing = "0">
        <tr>
           <th></th>
           <th>Email Address</th>
           <th>First Name</th>
           <th>Last Name</th>
           <th>Date</th>
           <th>Phone</th>
           <th>Action</th>          
        </tr>
        <tr>            
                                                    <td><input type="checkbox" name="bulk_select[]" id="bulk_select" value="2449831" class="bulk_select"></td>  

                                                        <td>test@gmail.com</td>

                                                        <td></td>

                                                        <td></td>

                                                        <td></td>

                                                        <td></td>


                <td>                        <a href="/lists/edit-subscriber?id=2449831">edit</a>&nbsp;&nbsp;&nbsp;

                    <a href="/lists/delete-subscriber?id=2449831" class="del_subscriber">delete</a></td>                            
            </tr>
                    <tr>            
                                                            <td><input type="checkbox" name="bulk_select[]" id="bulk_select" value="2449880" class="bulk_select"></td>  

                                                        <td>test48@gmail.com</td>

                                                        <td>Mark</td>

                                                        <td>Johnson</td>

                                                        <td></td>

                                                        <td></td>


                <td>                        <a href="/lists/edit-subscriber?id=2449880">edit</a>&nbsp;&nbsp;&nbsp;

                    <a href="/lists/delete-subscriber?id=2449880" class="del_subscriber">delete</a></td>                            
            </tr>
                    <tr>            
                                                            <td><input type="checkbox" name="bulk_select[]" id="bulk_select" value="2449881" class="bulk_select"></td>  

                                                        <td>test49@gmail.com</td>

                                                        <td>Chad</td>

                                                        <td>Davis</td>

                                                        <td></td>

                                                        <td></td>


                <td>                        <a href="/lists/edit-subscriber?id=2449881">edit</a>&nbsp;&nbsp;&nbsp;

                    <a href="/lists/delete-subscriber?id=2449881" class="del_subscriber">delete</a></td>                            
            </tr>

</table>

javascript to striping table:

    $("table.spreadsheet tr:nth-child(odd)").addClass("odd");
  • 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-15T00:48:35+00:00Added an answer on June 15, 2026 at 12:48 am

    You have your styles inside the body tag at the minute like:

    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    TABLE.spreadsheet  {   
    } 
    

    They should be inside a <style> tag like so:

    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
    
    <style>
    TABLE.spreadsheet  {   
    } 
    
    ...
    
    </style>
    

    My best guess would be that the reason the first selector breaks it if you remove it is because it is acting like the <style> tag as you aren’t telling the browser that it is a style

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

Sidebar

Related Questions

Does anyone know how to build an install project without it deleting/overwriting the _svn
My code compiles without error, but what does this mean? etherate.cpp:432:11: warning: deleting array
Does anyone have a good way of deleting duplicate transactions (same date, amount, biller,
Does anyone know what the esiest way to update the entity model after adding/deleting
Inserting a row in a database adds up data to it. Does deleting a
After deleting from database my ListView does not update , I found a method
does any one have any suggestions on deleting pod items in wordpress using triggers
I am deleting a row (user) from the table Accounts and I am trying
how does one insert records from one table to another that has a unique
Does the slide tap delete (i.e., deleting a video in Videos app) come default

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.