By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,867 Members | 1,981 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,867 IT Pros & Developers. It's quick & easy.

A:visited Line-through in Mozilla?

P: n/a
Hi.
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE, though.

Site:
http://members.rogers.com/rmacinty4/index.htm

Style sheet:
http://members.rogers.com/rmacinty4/style.css ...

Portion of concern (from stylesheet):

A:link {COLOR: rgb(0,0,0); TEXT-DECORATION: none;}
A:visited {COLOR: rgb(0,0,0); TEXT-DECORATION: line-through;}
A:hover {COLOR: black; TEXT-DECORATION: overline;}
A:active {COLOR: white; TEXT-DECORATION: underline;}

Thanks.

RM
Jul 20 '05 #1
Share this Question
Share on Google+
14 Replies


P: n/a
Richard wrote:
Hi.
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE, though.

Site:
http://members.rogers.com/rmacinty4/index.htm

Style sheet:
http://members.rogers.com/rmacinty4/style.css ...

Portion of concern (from stylesheet):

A:link {COLOR: rgb(0,0,0); TEXT-DECORATION: none;}
A:visited {COLOR: rgb(0,0,0); TEXT-DECORATION: line-through;}
A:hover {COLOR: black; TEXT-DECORATION: overline;}
A:active {COLOR: white; TEXT-DECORATION: underline;}

Thanks.

RM

All in lowercase ?

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #2

P: n/a
"Anne van Kesteren"
Richard wrote:
Hi.
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE, though.
Site:
http://members.rogers.com/rmacinty4/index.htm

Style sheet:
http://members.rogers.com/rmacinty4/style.css ...

Portion of concern (from stylesheet):

A:link {COLOR: rgb(0,0,0); TEXT-DECORATION: none;}
A:visited {COLOR: rgb(0,0,0); TEXT-DECORATION: line-through;}
A:hover {COLOR: black; TEXT-DECORATION: overline;}
A:active {COLOR: white; TEXT-DECORATION: underline;}
All in lowercase ?


Thanks, Anne, but I tried it locally on my machine to no avail.
Besides, a program I used previously- or a checker, I forget- automatically
made them upper-case at one point, so I can only presume that that might be
preferred CSS form.
Jul 20 '05 #3

P: n/a
Richard wrote:
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links?

Site:
http://members.rogers.com/rmacinty4/index.htm


Latest Mozilla? (works in 1.5)

--
Spartanicus
Jul 20 '05 #4

P: n/a
Richard wrote:
Site:
http://members.rogers.com/rmacinty4/index.htm


Good quality design btw, shame the page uses such dreadful code:

1) HTML Transitional doctype (so 1997, use strict)
2) Mix of upper and lower case tags (choose one)
3) Tables for layout (use CSS)
4) It's good practice to quote all attribute values
5) Inline CSS (don't)
6) Use of deprecated presentational markup
7) Usage of CSS class names not clever (class=two)
8) &nbsp;&nbsp;&nbsp;&nbsp; (yech)
9) <TD width="100px" (wha?)
10) Incorrect usage of alt: alt="image of a spiral stairs... select
images in this area for larger images *where/when available" ("image of
spiral stairs" is useless when (initially) viewed sans images, you could
probably shorten it to "larger images")
11) Incorrect markup: <P>88</P> (not a paragraph)

--
Spartanicus
Jul 20 '05 #5

P: n/a
Richard wrote:
"Anne van Kesteren"
Richard wrote:
Hi.
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE,
though.
Site:
http://members.rogers.com/rmacinty4/index.htm

Style sheet:
http://members.rogers.com/rmacinty4/style.css ...

Portion of concern (from stylesheet):

A:link {COLOR: rgb(0,0,0); TEXT-DECORATION: none;}
A:visited {COLOR: rgb(0,0,0); TEXT-DECORATION: line-through;}
A:hover {COLOR: black; TEXT-DECORATION: overline;}
A:active {COLOR: white; TEXT-DECORATION: underline;}


All in lowercase ?

Thanks, Anne, but I tried it locally on my machine to no avail.
Besides, a program I used previously- or a checker, I forget- automatically
made them upper-case at one point, so I can only presume that that might be
preferred CSS form.

I checked your page (didn't did that earlier). WFM Moz1.6a, but your
code is ugly, see the other reply.

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #6

P: n/a
Richard wrote:
"Anne van Kesteren"
Richard wrote:
Hi.
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE,
though.
Site:
http://members.rogers.com/rmacinty4/index.htm

Style sheet:
http://members.rogers.com/rmacinty4/style.css ...

Portion of concern (from stylesheet):

A:link {COLOR: rgb(0,0,0); TEXT-DECORATION: none;}
A:visited {COLOR: rgb(0,0,0); TEXT-DECORATION: line-through;}
A:hover {COLOR: black; TEXT-DECORATION: overline;}
A:active {COLOR: white; TEXT-DECORATION: underline;}


All in lowercase ?


I don't believe case is important, although lowercase is (I believe)
conventional.
All except :active do work on Moz 1.3, so if they don't work on 1.5/1.6
I suggest you report the regression through bugzilla.
I didn't like the overline, btw, but it's correct.

Chris

Jul 20 '05 #7

P: n/a
"Richard" <so**@where.com> wrote:
Would anyone know how- or if it is possible- to have the latest Mozilla
browser allow for a line-through on visited links? It works with IE, though.

Site:
http://members.rogers.com/rmacinty4/index.htm


Works fine in Moz 1.5 and even in Netscape 6 (based on the same
version of Gecko as Moz 0.9). That's on WinXP.

Which exact version of Mozilla on which platform is giving your
problems?

BTW it doesn't work 100% properly in IE5.0 - the visited links have
both underline and line-through. Okay in 5.5 and up.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #8

P: n/a
Chris Sharman wrote:
I don't believe case is important, although lowercase is (I believe)
conventional.


You are right, though it could be important when he used XML for example
(I didn't checked his page at that time).
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #9

P: n/a
"Richard" <so**@where.com> wrote:
A:hover {COLOR: black; TEXT-DECORATION: overline;}


It seems that you have encountered some problems with some browser versions,
but in addition to them, you have some potentially serious problems in your
CSS.

First, declaring color without background is very risky. If I remember
correctly, this is in the FAQ - at least it should be.

Second, A:hover matches all A elements on mouseover, and this includes
<a name="...">...</a> elements. Hence it is safer to use the selector list
:link:hover, :visited:hover

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #10

P: n/a
"Spartanicus"
Richard wrote:
Site:
http://members.rogers.com/rmacinty4/index.htm


Good quality design btw, shame the page uses such dreadful code:

1) HTML Transitional doctype (so 1997, use strict)
2) Mix of upper and lower case tags (choose one)
3) Tables for layout (use CSS)
4) It's good practice to quote all attribute values
5) Inline CSS (don't)
6) Use of deprecated presentational markup
7) Usage of CSS class names not clever (class=two)
8) &nbsp;&nbsp;&nbsp;&nbsp; (yech)
9) <TD width="100px" (wha?)
10) Incorrect usage of alt: alt="image of a spiral stairs... select
images in this area for larger images *where/when available" ("image of
spiral stairs" is useless when (initially) viewed sans images, you could
probably shorten it to "larger images")
11) Incorrect markup: <P>88</P> (not a paragraph)


Excellent info, Spartanicus, thanks for the effort and straightforward
feedback.
I agree about my code, and hopefully it gets better with time as I learn.
For now, it's as fitting a metaphor for, and as beautiful as, the industry,
as it has learned and is learning.
Jul 20 '05 #11

P: n/a
"Jukka K. Korpela"
"Richard"
A:hover {COLOR: black; TEXT-DECORATION: overline;}
It seems that you have encountered some problems with some browser

versions, but in addition to them, you have some potentially serious problems in your CSS.

First, declaring color without background is very risky. If I remember
correctly, this is in the FAQ - at least it should be.
I thought that the browser simply sets defaults for any missing
declarations. Oh well...
Second, A:hover matches all A elements on mouseover, and this includes
<a name="...">...</a> elements. Hence it is safer to use the selector list
:link:hover, :visited:hover


I'll look more into it. Thanks!
Jul 20 '05 #12

P: n/a
Richard wrote:
"Jukka K. Korpela"
"Richard"

you have some potentially serious problems in your CSS.

First, declaring color without background is very risky.


I thought that the browser simply sets defaults for any missing
declarations.


Right--either a browser setting out of the box, or a color chosen by
the user. Now suppose the user specifies white text on a green
background for paragraph text. Then, you suggest via css

p { color: green }

The result is green text on a green background.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #13

P: n/a
"Richard" <so**@where.com> wrote:
First, declaring color without background is very risky. If I remember
correctly, this is in the FAQ - at least it should be.


I thought that the browser simply sets defaults for any missing
declarations. Oh well...


It does, in effect. Now what happens when that default for background is
black and you have declared black color for content (text)?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #14

P: n/a
Richard wrote:
I agree about my code, and hopefully it gets better with time as I learn.
For now, it's as fitting a metaphor for, and as beautiful as, the industry,
as it has learned and is learning.


Good designers are usually poor coders, and good coders are usually poor
designers. If you can't do it yourself, get someone else to clean up the
code. A design like that deserves better, especially if it's meant as a
showcase.

--
Spartanicus
Jul 20 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.