shashgo
11-05-2002, 03:37 AM
Hey all
I dont understand this.
<style>
a.linker:link {font-weight: bold; color: blue; text-decoration: none;}
a.linker:visited {font-weight: bold; color: blue; text-decoration: none;}
a.linker:hover {font-weight: bold; color: red; text-decoration: none;}
a.linker:active {font-weight: bold; color: green; text-decoration: none;}
</style>
VS.
<style>
.linker:link {font-weight: bold; color: blue; text-decoration: none;}
.linker:visited {font-weight: bold; color: blue; text-decoration: none;}
.linker:hover {font-weight: bold; color: red; text-decoration: none;}
.linker:active {font-weight: bold; color: green; text-decoration: none;}
</style>
Both these stylesheets cause the same effects when used as in
<a class="linker" href="blah.com">BLAH</a>
So what is the different in saying
a.linker:{...
and
.linker:{...
Similarly
p.cls {...
vs
.cls {...
???????????????
I dont understand this.
<style>
a.linker:link {font-weight: bold; color: blue; text-decoration: none;}
a.linker:visited {font-weight: bold; color: blue; text-decoration: none;}
a.linker:hover {font-weight: bold; color: red; text-decoration: none;}
a.linker:active {font-weight: bold; color: green; text-decoration: none;}
</style>
VS.
<style>
.linker:link {font-weight: bold; color: blue; text-decoration: none;}
.linker:visited {font-weight: bold; color: blue; text-decoration: none;}
.linker:hover {font-weight: bold; color: red; text-decoration: none;}
.linker:active {font-weight: bold; color: green; text-decoration: none;}
</style>
Both these stylesheets cause the same effects when used as in
<a class="linker" href="blah.com">BLAH</a>
So what is the different in saying
a.linker:{...
and
.linker:{...
Similarly
p.cls {...
vs
.cls {...
???????????????