Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Stylesheet (.css)

Reply
Thread Tools

Stylesheet (.css)

 
 
Rickard Lindhé
Guest
Posts: n/a
 
      02-17-2004
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,Helvetica;
font-style: none;
font-weight: normal;
text-decoration: none;
font-size: 8pt;
}

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

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




 
Reply With Quote
 
 
 
 
Michael Winter
Guest
Posts: n/a
 
      02-17-2004
On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <(E-Mail Removed)>
wrote:

> I'm experiencing a problem using a css stylesheet on my homepage


[snipped - irrelevant]

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

Mike

--
Michael Winter
http://www.velocityreviews.com/forums/(E-Mail Removed)d (replace ".invalid" with ".uk" to reply)
 
Reply With Quote
 
 
 
 
kaeli
Guest
Posts: n/a
 
      02-18-2004
In article <hSwYb.49386$(E-Mail Removed)>,
(E-Mail Removed) enlightened us with...
> Hey.
>
> I'm experiencing a problem using a css stylesheet on my homepage


Then post in the stylesheet group.
Although they'll rip apart your style. Kind of like I'm about to do.

>
> 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
> }


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;

>
> #PCL {
> font-family: Verdana,Arial,Helvetica;


Don't use verdana.
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

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:underline;
}
A:hover {
COLOR: #aa0050;
font-family: Tahoma, Arial, sans-serif;FONT-SIZE: 9pt;
FONT-SIZE: small;
TEXT-DECORATION:underline;
}
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?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

 
Reply With Quote
 
Dr John Stockton
Guest
Posts: n/a
 
      02-18-2004
JRS: In article <(E-Mail Removed)>, seen in
news:comp.lang.javascript, Michael Winter <(E-Mail Removed)
d> posted at Tue, 17 Feb 2004 22:51:21 :-
>On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <(E-Mail Removed)>
>wrote:
>
>> I'm experiencing a problem using a css stylesheet on my homepage

>
>[snipped - irrelevant]
>
>Why post here then? Go to comp.infosystems.www.authoring.stylesheets.


<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.infosystems.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.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox and XSLT (local stylesheet works, server-based stylesheet fails) David Blickstein XML 14 10-15-2005 11:27 PM
xml:stylesheet use in document with multiple stylesheet options David Blickstein XML 3 08-02-2005 03:10 PM
have a stylesheet generate another stylesheet based on XML? Steven An XML 1 11-23-2004 01:07 PM
Stylesheet referanse i stylesheet =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?= XML 3 07-04-2004 03:16 PM
stylesheet question Uli ASP .Net 0 07-22-2003 01:17 PM



Advertisments