Micro Niche Builder
Closed Thread
Results 1 to 2 of 2

Thread: CSS what's the difference in syntax?

  1. #1

    Question CSS what's the difference in syntax?

    Hi all... I was wondering if any of you CSS pros could tell me the difference between these.

    a.class
    a.class:link
    .class a:link

    Also I've had issues with link classes when grouping them together with others

    For example all the classes below would work properly except the link class:
    .class p, .class .Normal, .class a:link{
    font-family: Tahoma;
    font-size: 10px;
    font-style: normal;
    line-height: 10px;
    font-weight: normal;
    color: #8E8B7A;
    }

    If I separate the link by itself it will work...but why?
    below worked.

    .class p, .class .Normal{
    font-family: Tahoma;
    font-size: 10px;
    font-style: normal;
    line-height: 10px;
    font-weight: normal;
    color: #8E8B7A;
    }
    .class a:link{
    font-family: Tahoma;
    font-size: 10px;
    font-style: normal;
    line-height: 10px;
    font-weight: normal;
    color: #8E8B7A;
    }

    Thanks.


  2. SEO Software

  3. #2
    Fresh Meat rbjarnason is on a distinguished road
    Join Date
    Aug 2009
    Location
    Winfield, BC Canada
    Posts
    7
    Thanks
    0
    Thanked 2 Times in 1 Post

    Default

    Hi
    this it the difference in the syntax.
    a.class refers to all the anchor tags with the class of 'class ' applied
    a.class:link same as the above but you are now attaching style to the pseudo :link the w3c has the actual definitions of the pseudo's
    .class a:link you are now referencing any anchor that is a child element of a tag with the class of 'class' applied to it. eg <li class='class'><a>you are referencing me</a></li>

Closed Thread

Similar Threads

  1. SEO Tool with difference
    By learn2earn in forum SEO Forum
    Replies: 24
    Last Post: 11-18-2009, 06:01 AM
  2. What?s the difference between include and require?
    By gilbertsavier in forum PHP Help
    Replies: 1
    Last Post: 08-20-2009, 11:27 AM
  3. difference between SEO and SEM
    By hiren_mehta007 in forum SEO Forum
    Replies: 7
    Last Post: 06-28-2009, 10:06 PM
  4. difference banned and disable...
    By dpmax in forum Adsense
    Replies: 3
    Last Post: 06-18-2009, 01:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

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