how do you set vlink and alink colors inside the body tag in CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GirlNinja
    Confirmed User
    • Jan 2004
    • 1515

    #1

    how do you set vlink and alink colors inside the body tag in CSS

    i have to but it in the body tag for some reason, it's part of some "homework"

    BODY {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 14pt;
    color: 193C24;
    background-color: E4F9CC;

    }
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #2
    How many threads do you need asking this?

    Anyway, there is no way to do that using css.
    You have to set the a tags separate from the body tags.
    This is me on facebook
    This is me on twitter

    Comment

    • GirlNinja
      Confirmed User
      • Jan 2004
      • 1515

      #3
      Originally posted by NichePay - StuartD
      How many threads do you need asking this?

      Anyway, there is no way to do that using css.
      You have to set the a tags separate from the body tags.
      two seemed to work out fine, and are you sure there's no way?

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        Originally posted by GirlNinja
        two seemed to work out fine, and are you sure there's no way?
        Yes, I'm sure. You can set vlinks and hlinks in the <body> tag if you wish, but that's separate of CSS.
        If you insist on using CSS, then you have to set the a tags separate of the body tags.
        This is me on facebook
        This is me on twitter

        Comment

        • Holly
          Too lazy to set a custom title
          • Jun 2003
          • 10017

          #5
          Are you sure you have to put it *in* the body element? Usually it's more like:

          BODY { background: #000000 blah blah whatever; }
          A:LINK { color: #000000; }
          A:VISITED { color: #000000; }
          A:ACTIVE { color: #000000; }


          Otherwise, I think you'd have to use the body tag.
          War National Damn Champions Eagle

          Comment

          • Tala
            Fucked if I know
            • Dec 2002
            • 23368

            #6
            Originally posted by Holly
            Are you sure you have to put it *in* the body element? Usually it's more like:

            BODY { background: #000000 blah blah whatever; }
            A:LINK { color: #000000; }
            A:VISITED { color: #000000; }
            A:ACTIVE { color: #000000; }


            Otherwise, I think you'd have to use the body tag.
            Example using your own code:

            BODY {
            font-family: "Trebuchet MS", Arial, sans-serif;
            font-size: 14pt;
            color: 193C24;
            background-color: E4F9CC;

            }

            A:LINK { color: #000000; }
            A:VISITED { color: #000000; }
            A:ACTIVE { color: #000000; }




            ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.

            Comment

            • swedguy
              Confirmed User
              • Jan 2002
              • 7981

              #7
              If you do like this, it will only belong to the body tag

              body a:active { color:white}
              body a:visited{ color:white}

              But it's basically the same since both covers the whole html page

              a:active {color:white}
              a:visited{ color:white}

              Search on CSS childs and you can read about it.

              Comment

              Working...