Hey all,
I'm a PHP/MySQL coder by trade, hence a bit green
with CSS, as this question will show.
I have two sets of style elements to style two
different kinds of links, as the code below shows.
.shoplogo a, a:visited {
border: none;
color: #000;
background-color: #b9e4ff;
text-decoration: none;
}
.shoplogo a:hover {
border: none;
color: #000;
background-color: #b9e4ff;
text-decoration: none;
}
.pagelink a, a:visited {
display: block;
width: 6em;
padding: 0.2em;
line-height: 1.4;
background-color: #47afe2;
border: 1px solid black;
color: #000000;
text-decoration: none;
text-align: center;
}
.pagelink a:hover {
display: block;
width: 6em;
padding: 0.2em;
line-height: 1.4;
background-color: #369;
border: 1px solid black;
color: #ffffff;
text-decoration: none;
text-align: center;
}
And then I have code in an html file with the
following two lines, in different places.
<td align="center" valign="top"><a
class="shoplogo" href="http://shopstudios.com">
<img src="images/ShoTV-1.jpg"
border="0"></a>
</td>
<td align="center" valign="top"><a
href="fashion.html" class="pagelink">FASHION</a></td>
The problem is that both links take on the
properties of whatever style set, or specs for the
links, is listed last in the CSS file.
I would think since they have separate names, that
each would adhere to the properties of the one
they are called by.
I know to all of you this is trivial and you're
rolling your eyes, but I'm a bit confused.
Thanks,
Skip
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
=-=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
=-=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************