This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Re: Help with CSS!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Help with CSS!
Lance

2004-08-06, 7:14 pm

From what I understand, you have a page that refers to two different CSS
files, correct?

If you have the same declarations in each file, the page will use the
declaration that came last. So if you footer CSS file is loaded last, those
are the link characteristics that it will use.

So, you need to change those footer link styles to distinguish them from the
first link styles.

Change this:
a:link

to this:

..footer a:link

Do the same for the rest of the footer link styles. That should clear it up.


--
Lance Goins

http://makeashorterlink.com/?X165518A2


"ana" <anabreu@coresaocubo.pt> wrote in message
news:cf0ghm$1i4$1@forums.macromedia.com...
> Hi all!
>
> I'm making this news website, and in each page i have two CSS: one for the
> text and other for the footer...
> in both i determined a:link, a:visited and a:hover
>
> The website is temporarily in http://www.coresaocubo.pt/teste/html/08.html
> although i attached to different cells, different CSS styles, it only
> assumes a:link, a:visited and a:hover from one of them.... why is this
> happening, any ideas?
>
> what am i doing wrong? :(
>
> thx for any input,
>
> Ana
>
> ps. here is the code for both the CSS:
>
> --------------------------------------------------------
> .texto {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px;
> font-style: normal;
> font-weight: normal;
> color: #666666;
> text-decoration: none;
> text-align: left;
> vertical-align: top;
> }
> a:link {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px;
> font-weight: normal;
> color: #FF9900;
> text-decoration: underline;
> }
> a:visited {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px;
> font-weight: normal;
> color: #FF9900;
> text-decoration: underline;
> }
> a:hover {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px;
> font-weight: bold;
> color: #666666;
> text-decoration: underline;
> }
>
> -----------------------------------------------------
>
> .footer {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 9px;
> font-style: normal;
> font-weight: normal;
> color: #666666;
> text-decoration: none;
> text-align: left;
> vertical-align: top;
> }
> a:link {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 9px;
> font-weight: normal;
> color: #666666;
> text-decoration: none;
> }
> a:visited {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 9px;
> font-weight: normal;
> color: #666666;
> text-decoration: none;
> }
> a:hover {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 9px;
> font-weight: normal;
> color: #666666;
> text-decoration: underline;
> }
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews