SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Style Sheet

  1. #1
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On the following style sheet, the .content is working fine, but on the menu, I only want the links to be in white, and I want any other text that is typed to be in Orange, but when I view the page, it comes up as the whole menu being Orange, when only text that is not a link should be Orange. If anybody can point me in the right direction as to what I'm doing wrong, I'd be keen to hear about it!

    Here is the Style Sheet;

    .menu {font-face: Arial, Helvetica, sans-serif; font-size: 12pt; color: #FF9900; A:link: {color: white; text-decoration: underline}

    .content {font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: #000000; A:link: {color: blue; text-decoration: underline} A:visited: {color: purple; text-decoration: none} A:active: {color: red; text-decoration: none}

    Any help is much appreciated.

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have never embedded tags in a class like you have done. I have always preferred the less ambigous rule of defining each tag for each style I wanted to use.

    i.e:
    A.menu:hover
    A.menu:active
    A.menu:visited

    So on and so forth. Try that and see if it works.

    ------------------
    Wayne Luke
    Internet Media Provider

  3. #3
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's exactly the way I do it to.

    Mike

    ------------------
    Street Bikers United protecting the rights of motorcyclists worldwide.
    Cosmic Custom Airbrush - Hawaii's premier airbrush studio.


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
  •