469,643 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

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


Jul 20 '05 #1
3 1143
On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <ri***********@telia.com>
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
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2
In article <hS********************@newsb.telia.net>,
ri***********@telia.com 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

Jul 20 '05 #3
JRS: In article <op**************@news-text.blueyonder.co.uk>, seen in
news:comp.lang.javascript, Michael Winter <M.******@blueyonder.co.invali
d> posted at Tue, 17 Feb 2004 22:51:21 :-
On Tue, 17 Feb 2004 22:47:41 GMT, Rickard Lindhé <ri***********@telia.com>
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.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by annoyedtuna | last post: by
3 posts views Thread by VSK | last post: by
6 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.