hide table row with no div in css

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Li A
    New Member
    • Dec 2011
    • 1

    hide table row with no div in css

    I am working with a pre-constructed template, and the only editing capability I have is to place css elements within the main body. I am trying to hide a few <tr>'s that do not have a seperate <div> tag or anything. I'm pretty new to this... please help, if possible! thanks!
  • BigPapaN0z
    New Member
    • Dec 2011
    • 24

    #2
    If you are able to add inline CSS within the template itself, you can add this to the <tr>:
    Code:
    <tr style="visibility:hidden;">
    If not, you could try to isolate and use nested CSS tags. Something like:
    Code:
    table tr {visibility:hidden;}
    However, keep in mind that this would effectively hide ALL TRs. Look at the code and see if there is anyway to isolate the intended TR you wish to hide (perhaps they all have the same name (<tr name="TRodd">) and you can do:
    Code:
    table tr .TRodd {visibility:hidden;}
    I hope I didn't completely confuse you. Nesting is considered "advanced" CSS but is easy to understand once you see it in action. If you need more assistance, please don't hesitate to ask. We're always here to help!

    Comment

    Working...