#abc div.text

Discussion in 'CSS' started by motofoto, Dec 22, 2008.

  1. #1
    Hi

    I found a CSS writen like this

    #ABC {
    .........
    }

    #ABC div.text{
    ...........
    }

    1- Is the second class affects any text contents in ABC.

    2- I can't find a tutorial on the web that describe this, and it seems common thing to do, can you direct me for a tutorial??

    Thanks
     
    motofoto, Dec 22, 2008 IP
  2. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #2
    The attributes in the second selector will not affect the first selector's object. They will just modify the <div class="text"> object that falls under something with the id set to "ABC".
     
    tarponkeith, Dec 23, 2008 IP