SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Is this valid?

  1. #1
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is this valid?

    Is something like this valid CSS?

    .linkleft a:link{
    color: #5c1d07;
    font-family: verdana;
    font-size: 9pt;
    text-decoration: underline;
    }

    .linkleft a:visited{
    color: #5c1d07;
    font-family: verdana;
    font-size: 9pt;
    text-decoration: underline;
    }
    .linkleft a:hover{
    color: #B4370E;
    font-family: verdana;
    font-size: 9pt;
    text-decoration: underline;
    }

    -------------------------------------

    <a class="linkleft" href="blah.php">blah</a>

    That's exactly what I'm using on my site and it's not working...
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  2. #2
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem fixed.
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It would have to be a rule like "a.linkleft", not ".linkleft a" (just posting the solution for future reference if anyone comes upon this thread later; I know your problem has been solved).

  4. #4
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The code in the first could have worked, you just needed:

    <p class="linkleft"><a href="something.com">Something</a>

    To apply it to a block level element or a container of some sort.

    (Same point as Vinnie, just so people know the first CSS code is perfectly valid, just applied wrong)
    Ryan Butler

    Midwest Web Design

  5. #5
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    It would have to be a rule like "a.linkleft", not ".linkleft a" (just posting the solution for future reference if anyone comes upon this thread later; I know your problem has been solved).
    Yep, sorry - I should have posted the fix.
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation


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
  •