Jump to content

how should i interpret this?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Guest_R3.RyozKidz_*

Guest_R3.RyozKidz_*
  • Guests
#customers
{
...
}

#customers td, #customers th 
{
...
}

#customers th 
{
...
}

#customers tr.alt td 
{
..
}

This code was from a tutorial.
how should i interpret "#customers td, #customers th " or what is the meaning?
and this one as well "#customers tr.alt td "

thanks..

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It's referring to tags within a item with id customers. So a td tag inside the customers id tag (probably a div) gets the formatting for #customers td
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
yassinebelkaid

yassinebelkaid

    Newbie

  • Members
  • PipPip
  • 20 posts
you will give some properties and values to #customers, then #customers td....etc
on your page which will contain e.g.: <div id="customers"><table><th>something</th><td>something else</td></table> </div>
you need just to modify #customers td and #customers th and it will automatically modify all ths and tds inside <div id="customers">




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users