Results 1 to 4 of 4

Thread: CSS: tr under what table

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved CSS: tr under what table

    Dunno if I posted the title correctly. Sounds silly. I need help here with CSS. I'm wanting to almost like inherit. Sorry for my bad explanation. I don't know much about CSS. So, I'll illustrate a bit.

    I have a table and wanted to be darkgrey and all tr of that table is lightgrey. And I have .navigator class and called it something like

    <table class="navigator">

    and I don't want to call <tr class="somelightgreyclass"> to all tr. How do I apply a lightgrey to all tr inside the table having the class navigator?

    Thanks in advance.
    Last edited by nebulom; Aug 23rd, 2005 at 04:48 AM.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: CSS: tr under what table

    I guess this solves it

    table.navbar{
    background:#c7c7c7;
    }
    table.navbar *{
    background:#efefef;
    }

    Anyone has another solution? Please post. Thanks.

  3. #3
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: CSS: tr under what table

    table.navbar tr{
    background:#efefef;
    }

    isn't it?
    Don't Rate my posts.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: CSS: tr under what table

    Yes it is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width