Need CSS Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vachico
    Confirmed User
    • Jul 2005
    • 147

    #1

    Need CSS Help

    I need some help with CSS.

    I want the linked words at http://www.hotwordlinks.com/sample.html to have the same style like the word unlinked.

    At the sample above the line of words is unlinked and the one below is linked, but I don't want the change of the color.

    How can I do this in CSS?

    Thanks
    Tom
  • Vachico
    Confirmed User
    • Jul 2005
    • 147

    #2
    Also I would like to know how it's possible to add an alt-tag like for an image to a non-image link. I saw it one time somewhere but don't remember where to have a look how it works.

    Thanks.

    Comment

    • studd
      Registered User
      • Dec 2006
      • 70

      #3
      Originally posted by Vachico
      I need some help with CSS.

      I want the linked words at to have the same style like the word unlinked.

      At the sample above the line of words is unlinked and the one below is linked, but I don't want the change of the color.

      How can I do this in CSS?

      Thanks
      Tom
      That's very easy. You seem to have successfully done the first few words, whats the problem?

      Comment

      • Vachico
        Confirmed User
        • Jul 2005
        • 147

        #4
        No sorry. It's not done.

        The first line of the words is how they look unlinked and how I want them to look,
        but the second line of the same words is linked and the color changes to the default blue color and this is what I don't want.

        I want the linked words to stay the^same color like unlinked.

        Comment

        • OTerror
          Confirmed User
          • Aug 2005
          • 2527

          #5
          google my noozle
          ICQ 424142850

          Comment

          • pornxpose
            Registered User
            • Mar 2007
            • 2

            #6
            Probably the easiest thing to do is to use inherit, like this:

            a:hover {
            text-decoration: underline;
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
            font-style: inherit;
            font-family: inherit;
            }

            add the inherit statements to the rest of your link styles (a:active etc.)

            Comment

            • Vachico
              Confirmed User
              • Jul 2005
              • 147

              #7
              @ OTerror - I googled but didn'T find exactly what I was looking for.

              @ pornxpose. - Many thanks - Works perfectly.

              Comment

              • pornxpose
                Registered User
                • Mar 2007
                • 2

                #8
                You are welcome.

                Comment

                • aidantrent
                  beep
                  • Nov 2005
                  • 236

                  #9
                  Originally posted by Vachico
                  Also I would like to know how it's possible to add an alt-tag like for an image to a non-image link. I saw it one time somewhere but don't remember where to have a look how it works.

                  Thanks.
                  Use the 'title' attribute inside your like, like <a href="http://w3.org" title="The answer to your question is here">. Beware, though, that not all browsers display that attribute. I know Firefox does, and I think IE might, but I'm on a Mac right now and can't verify.
                  JustPicsPlease - Search millions of porn pics
                  (Or thousands of porn tubes, if that's your style.)

                  Both sites are desktop- and mobile-friendly.

                  Comment

                  Working...