css help please

Out of context: Reply #6

  • Started
  • Last post
  • 9 Responses
  • ********
    0

    a.style1
    ("a" with a class of "style1")

    .style1 a
    ("a" contained within a class of "style1")
    thismanslife
    (Jun 15 05, 04:28)

    exactly.

    think of it like this...

    If you define a class you can apply it to any tag ("a" included) so in your HTML you'd have:

    < a class = "style1"

    for example...

    if you define .style1 a instead, what you are doing is saying "every a tag within the style class, (whatever tag you applied the style to..) "

    hope that makes sense.

View thread