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

The Archive Base Latest Questions

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

I have to hide a td element in a tr which has 2 td

  • 0

I have to hide a td element in a tr which has 2 tds

Here is the HTML code:

<div class="ms-globalnavicon">
  <table cellpadding="0" cellspacing="0" style="border:solid 0px red;">
    <tr>
      <td align="left" valign="top" style="padding-right:10px;padding-top:5px;">
        <a href="http://unet.unisys.com" target="_blank">
          <img src="/_layouts/images/SiteIcon.png" alt="Unisys" />
        </a>
      </td>
      <td align="left" valign="top" style="padding-top:9px;">
        <a href="http://google.com">My Site</a>
      </td>
    </tr>
  </table>
</div>

In the above HTML code I need to hide the 2nd td element alone in CSS. I put the below CSS but it is hiding both the tds.

.ms-globalnavicon table tr td {
  visibility: collapse;
}
<div class="ms-globalnavicon">
  <table cellpadding="0" cellspacing="0" style="border:solid 0px red;">
    <tr>
      <td align="left" valign="top" style="padding-right:10px;padding-top:5px;">
        <a href="http://unet.unisys.com" target="_blank">
          <img src="/_layouts/images/SiteIcon.png" alt="Unisys" />
        </a>
      </td>
      <td align="left" valign="top" style="padding-top:9px;">
        <a href="http://google.com">My Site</a>
      </td>
    </tr>
  </table>
</div>
  • 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-24T13:25:35+00:00Added an answer on May 24, 2026 at 1:25 pm

    Easiet / safest way is to add a class to target. http://jsfiddle.net/gJvhs/

    .hideANDseek {
      display: none;
    }
    <div class="ms-globalnavicon">
      <table cellpadding="0" cellspacing="0" style="border:solid 0px red;">
        <tr>
          <td align="left" valign="top" style="padding-right:10px;padding-top:5px;">
            <a href="http://unet.unisys.com" target="_blank">
              <img src="/_layouts/images/SiteIcon.png" alt="Unisys" />
            </a>
          </td>
          <!-- added the class here -->
          <td class="hideANDseek" align="left" valign="top" style="padding-top:9px;">
            <a href="http://google.com">My Site</a>
          </td>
        </tr>
      </table>
    </div>

    Edit: Or you could use jquery to add that class.

    http://jsfiddle.net/gJvhs/1/ – works crossbrowser ( also ie6+)


    Edit: Another thing.. http://sizzlejs.com/ – https://github.com/jquery/sizzle/wiki/Sizzle-Home

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

Sidebar

Related Questions

I have this jquery script which suppose to hide/show div element base on the
I have done a hide and show of a div element, on clicking a
I have an html select element which I would like to style for print
When I am using hide() in jquery on some div element (which is very
I have a component screen which has 2 states: show and hide. When I
I have a show/hide toggle working well in multiple instances (thanks to help here
I have the following code: $('.breadcrumb:contains(,)').hide(); It does as expected and hides the entire
Scenario: I have a Question which has 2 radio buttons & two subforms: subformA
I'm generating a page using jsp, it has a list element which shows a
I have an alert div , which appears when a user clicks on 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.