have a CSS question

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

    #1

    have a CSS question

    how do you set visted link and active link colors in CSS?
  • chupachups
    Confirmed User
    • Dec 2002
    • 6576

    #2
    a:link {color: #FF0000}
    a:visited {color: #00FF00}
    a:hover {color: #FF00FF}
    a:active {color: #0000FF}

    Comment

    • fris
      I have to go potty
      • Aug 2002
      • 55750

      #3
      a:link {
      color: #A21569;
      }
      a:visited {
      color: #A21569;
      }
      a:hover {
      color: #A21569;
      }
      a:active {
      color: #A21569;
      }
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


      Totally Free Templates

      Comment

      • GirlNinja
        Confirmed User
        • Jan 2004
        • 1515

        #4
        I want to set them inside the body tag:

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

        }

        Comment

        • StuartD
          Sofa King Band
          • Jul 2002
          • 29903

          #5
          Originally posted by GirlNinja
          I want to set them inside the body tag:

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

          }
          any special reason why?
          This is me on facebook
          This is me on twitter

          Comment

          • GirlNinja
            Confirmed User
            • Jan 2004
            • 1515

            #6
            Originally posted by NichePay - StuartD
            any special reason why?

            it's homework

            Comment

            • grumpy
              Too lazy to set a custom title
              • Jan 2002
              • 9870

              #7
              thats not the proper way to do it.

              in css its a seperate tag
              in html its like <body alink=green etc
              Don't let greediness blur your vision | You gotta let some shit slide
              icq - 441-456-888

              Comment

              • Darkland
                Confirmed User
                • May 2002
                • 1488

                #8
                Well it doesn't really make sense what your trying to do, but here are your options.

                1. If you want something simple in the body for links then it would simply be:
                <body link="#0000FF" vlink="#66FF33" alink="#FF0000">

                2. If it has to be CSS then you can either but this in your header or call to a css sheet:
                <style>
                a:link {color: #FF0000;
                }

                a:visited {color: #66FF33;
                }

                a:active {color: #0000FF;
                }
                </style>

                The only real thing you can do as far as putting css in your body tag is to call to a particular element in the css by use of Class or Id selectors. I am by no means an expert and maybe someone else here knows more than I do and knows a better way to do it.

                Best advice to you is go to a book store and pick up Cascading Style Sheets by O'Reilly. CSS is very easy to learn.


                "The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01

                Comment

                • evanmorgan
                  Confirmed User
                  • Aug 2004
                  • 2490

                  #9
                  I have a CSS question guys, what the hell does it stand for
                  Perfect for Asian, Petite,Teen, Exotic, Bikini, Solo girl, Panty, Softcore and Cameltoe Traffic

                  100% Exclusive Girls and Content

                  Comment

                  • Darkland
                    Confirmed User
                    • May 2002
                    • 1488

                    #10
                    Originally posted by evanmorgan
                    I have a CSS question guys, what the hell does it stand for
                    Cascading
                    Style
                    Sheet


                    "The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01

                    Comment

                    • StuartD
                      Sofa King Band
                      • Jul 2002
                      • 29903

                      #11
                      Originally posted by evanmorgan
                      I have a CSS question guys, what the hell does it stand for
                      Cascading Style Sheets
                      This is me on facebook
                      This is me on twitter

                      Comment

                      • After Shock Media
                        It's coming look busy
                        • Mar 2001
                        • 35299

                        #12
                        Originally posted by evanmorgan
                        I have a CSS question guys, what the hell does it stand for
                        Cascading style sheets if I remember.

                        [email protected] ICQ:135982156 AIM: Aftershockmed1a MSN: [email protected]

                        Comment

                        • Lester
                          Confirmed User
                          • Sep 2003
                          • 468

                          #13
                          http://www.w3schools.com/css/

                          http://www.w3schools.com/css/css_examples.asp


                          pretty cool online tutorials
                          I have no sig...sigh

                          Comment

                          • nofx
                            Too lazy to set a custom title
                            • Nov 2002
                            • 16826

                            #14
                            cheater!

                            Often times I wonder why
                            There's love and hate, theres live or die.
                            When sickness comes I must decide:
                            When feelings go, theres suicide.

                            Comment

                            • swedguy
                              Confirmed User
                              • Jan 2002
                              • 7981

                              #15
                              Taken from your other thread

                              Originally posted by swedguy
                              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

                              • ssp
                                Confirmed User
                                • Jan 2005
                                • 7990

                                #16
                                Originally posted by swedguy
                                Taken from your other thread
                                This guy got the right answer. Ignore the rest of the CSS virgins.

                                Comment

                                • iwantchixx
                                  Too lazy to set a custom title
                                  • Oct 2002
                                  • 12860

                                  #17
                                  Glad to see a CSS thread. I tried it out the other day and it totally didn't work. I'll read those tutorials posted. Thanks.

                                  Comment

                                  • Darkland
                                    Confirmed User
                                    • May 2002
                                    • 1488

                                    #18
                                    Originally posted by ssp
                                    This guy got the right answer. Ignore the rest of the CSS virgins.
                                    Not sure who your talking about but that pretty much just reiterated what I said.


                                    "The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01

                                    Comment

                                    • jayeff
                                      Confirmed User
                                      • May 2001
                                      • 2944

                                      #19
                                      Originally posted by GirlNinja
                                      I want to set them inside the body tag:

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

                                      }
                                      I cannot imagine why you are being asked to do it this way because it is absolutely the wrong way to go about it, but if you insist:

                                      <body style="font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 14pt; color: #193c24; background-color: #e4f9cc;">

                                      You cannot however set the link attributes in this way. For those, the options have already been suggested.

                                      And btw font sizes in pt (as opposed to px) do not render the same size in every browser...
                                      Last edited by jayeff; 03-30-2005, 03:03 PM.

                                      Comment

                                      • ssp
                                        Confirmed User
                                        • Jan 2005
                                        • 7990

                                        #20
                                        Originally posted by Darkland
                                        Not sure who your talking about but that pretty much just reiterated what I said.
                                        I didn't realise I offended you.

                                        Comment

                                        Working...