Stylesheet (.css)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rickard Lindhé

    Stylesheet (.css)

    Hey.

    I'm experiencing a problem using a css stylesheet on my homepage
    (http://w1.193.telia.com/~u19305515/test/testis.html). As you can see, the
    link works according to the stylesheet when not visited. But when the link
    is visited, the stylesheet has no effect on the link. Basically, what my
    problem is all about, is that I want my visited links to be underlined in
    hover, just like they are when not visited.

    I hope there is someone who can help me with this issue!
    /Rickard

    This is how my .css file looks like now:

    A:active {
    COLOR: #4040cc; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; TEXT-DECORATION:
    underline
    }
    A:hover {
    COLOR: #aa0050; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; TEXT-DECORATION:
    underline
    }
    A:link {
    COLOR: #4040cc; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; TEXT-DECORATION: none
    }
    A:visited {
    COLOR: #4040cc; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; TEXT-DECORATION: none
    }
    BODY {
    COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica; FONT-SIZE: 8pt;
    }

    #PCL {
    font-family: Verdana,Arial,H elvetica;
    font-style: none;
    font-weight: normal;
    text-decoration: none;
    font-size: 8pt;
    }

    #PTT {
    font-family: Verdana,Arial,H elvetica;
    font-size: 8pt;
    }

    #PST {
    font-family: Verdana,Arial,H elvetica;
    font-size: 8pt;
    }




  • Michael Winter

    #2
    Re: Stylesheet (.css)

    On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <rickardlindhe@ telia.com>
    wrote:
    [color=blue]
    > I'm experiencing a problem using a css stylesheet on my homepage[/color]

    [snipped - irrelevant]

    Why post here then? Go to comp.infosystem s.www.authoring.stylesheets.

    Mike

    --
    Michael Winter
    M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

    Comment

    • kaeli

      #3
      Re: Stylesheet (.css)

      In article <hSwYb.49386$mU 6.195047@newsb. telia.net>,
      rickardlindhe@t elia.com enlightened us with...[color=blue]
      > Hey.
      >
      > I'm experiencing a problem using a css stylesheet on my homepage[/color]

      Then post in the stylesheet group.
      Although they'll rip apart your style. Kind of like I'm about to do. :)
      [color=blue]
      >
      > I hope there is someone who can help me with this issue!
      > /Rickard
      >
      > This is how my .css file looks like now:
      >
      > A:active {
      > COLOR: #4040cc; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; TEXT-DECORATION:
      > underline
      > }[/color]

      Don't use pixels for fonts!
      We can't resize the text if we can't read it well. That is, trying to
      increase the font size using my browsers view -> font size option won't
      work if you use pixels.
      Not all of us have good vision, you know. Use percents or small, medium,
      etc.
      What am I supposed to see if I don't have Tahoma? Use fallbacks.
      font-family: Tahoma, Arial, sans-serif;
      font-size: small;
      [color=blue]
      >
      > #PCL {
      > font-family: Verdana,Arial,H elvetica;[/color]

      Don't use verdana.


      This seems top have fixed the problems.
      <html>
      <head>
      <title> New Document </title>
      <style type="text/css">
      A {
      COLOR: #4040cc;
      font-family: Tahoma, Arial, sans-serif;FONT-SIZE: 9pt;
      TEXT-DECORATION: none;
      FONT-SIZE: small;
      }

      A:active {
      COLOR: #4040cc;
      font-family: Tahoma, Arial, sans-serif;FONT-SIZE: 9pt;
      FONT-SIZE: small;
      TEXT-DECORATION:unde rline;
      }
      A:hover {
      COLOR: #aa0050;
      font-family: Tahoma, Arial, sans-serif;FONT-SIZE: 9pt;
      FONT-SIZE: small;
      TEXT-DECORATION:unde rline;
      }
      A:link {
      COLOR: #4040cc;
      font-family: Tahoma, Arial, sans-serif;FONT-SIZE: 9pt;
      FONT-SIZE: small;
      TEXT-DECORATION: none;
      }
      </style>
      </head>
      <body>
      <a href="test.html ">here</a><br>
      <a href="test.html ">here</a><br>
      <a href="test.html ">here</a><br>
      <a href="test.html ">here</a><br>
      </body>
      </html>

      --
      --
      ~kaeli~
      Is it true that cannibals don't eat clowns because they
      taste funny?



      Comment

      • Dr John Stockton

        #4
        Re: Stylesheet (.css)

        JRS: In article <opr3jdsw065vkl cq@news-text.blueyonder .co.uk>, seen in
        news:comp.lang. javascript, Michael Winter <M.Winter@bluey onder.co.invali
        d> posted at Tue, 17 Feb 2004 22:51:21 :-[color=blue]
        >On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <rickardlindhe@ telia.com>
        >wrote:
        >[color=green]
        >> I'm experiencing a problem using a css stylesheet on my homepage[/color]
        >
        >[snipped - irrelevant]
        >
        >Why post here then? Go to comp.infosystem s.www.authoring.stylesheets.[/color]

        <FAQENTRY alt="see FAQ 2.2">

        Which Newsgroup Should My Question Really Go To?

        Newsgroups suitable for questions which are only moderately off-topic
        here include :

        * alt.html
        * comp.infosystem s.www.authoring.stylesheets
        * comp.lang.java, comp.lang.java. *
        * ...


        --
        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
        <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
        <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
        <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

        Comment

        Working...