Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: seems simple, but im having trouble with links  (Read 3410 times)
« on: June 02, 2005, 09:39:40 PM »
moxie990 Offline
Jr. Member

View Profile
**
Posts: 50



in my site, i am utalizing css that are linked on each page, and i believe this is where my problem lies, but what is happening is that i have links set up to be orange and underlined when the mouse isnt over them (for both visited and pre visited states) and then blue with no underline when mouse over or clicked .... now, the problem is, once you have clicked on a link, the CSS stops working.  On a previous website ive made, i was not quite as familiar with CSS as i am now, so i simply had the css for changing link styles embedded in each of the sites pages ... but it worked no matter if a user had visted the links before

is there a work around for this problem? or should i place that part of the css in each pages body section? ..... or, have i messed some part of my css up?  any help would be appreciated, thanks a lot!
Report to moderator   Logged

 
« Reply #1 on: June 03, 2005, 10:44:14 AM »
Working for Rielst...
Ryanbi Offline
Junior Member
Newbie

View Profile WWW
*
Posts: 34



I think you should have the code :

Code:
a:visited{blahblahblah}
after you clicking the links, it'll use that css code
Report to moderator   Logged
« Reply #2 on: June 06, 2005, 09:26:13 AM »
moxie990 Offline
Jr. Member

View Profile
**
Posts: 50



yea, i understand that, its not like my css is coded wrong ... but its just that the code that governs the behavior of the links is in an external css sheet that i link to ... and i guess my question is why does the css stop working when its linked? i guess ill just try puttin the css for the links right in the body of the page and see if that remedies the problem
Report to moderator   Logged
« Reply #3 on: June 06, 2005, 09:56:50 AM »
moxie990 Offline
Jr. Member

View Profile
**
Posts: 50



Actually, so you can all see what im doing, here is the code from my presentation style sheet
Code:
/* Presentation Stylesheet */

h3, p {
 margin:0;
 padding:15px;
 }

h4 {
 margin:0;
 padding: 5px 0;
 }
 
p:first-letter {
 font-size: 180%;
 font-weight: bold;
 color: orange;
 }


A:link {color: orange; text-decoration:underline};

A:hover
{
color: blue;
text-decoration: none
};

A:active
{color: blue;
text-decoration: none
};

A:visited
{color: orange;
text-decoration: underline;
};


now, i might be missing somehting simple ... but what happens is if you freshly visit my page, everything works fine, but as soon as you view each page, that respective link will not respond anymore to the a:hover commands i have set up ... it simply reverts to the a:link and a:visited (since they are the same) stage .... i dont quite understand why ... it might be something simple that i just keep looking over, but i just dont know
« Last Edit: June 06, 2005, 10:02:24 AM by moxie990 » Report to moderator   Logged
« Reply #4 on: June 06, 2005, 08:12:13 PM »
adragons
Guest

Here this should work:
A:link{
   color: orange;
   text-decoration: underline;
}
A:visited{
   color: orange;
   text-decoration: underline;
}
A:active{
   color: blue;
   text-decoration: underline;
}
A:hover{
   color: blue;
   text-decoration: none;
}
All i did was rearage them and format them better...
Report to moderator   Logged
« Reply #5 on: June 07, 2005, 08:25:10 AM »
moxie990 Offline
Jr. Member

View Profile
**
Posts: 50



wow thanks a lot, that works fantastic.  still not sure what i messed up (i know there are ";"s in the code, but it wasnt working even w/out those) ... anyway, thanks a lot, i really appreciate the help
Report to moderator   Logged
« Reply #6 on: October 25, 2005, 04:00:06 PM »
Headbanger in Training
tpgames Offline
Member

View Profile WWW
***
Posts: 170



Sometimes, the order in which something is placed does matter. WWW is beginning to have pickier code in that respect but I forget if its XML or what that is getting pickier.  rolleyes
Report to moderator   Logged

TPGames jaunting off to reconsider her career choice...Headbanging.
It's what you do when you are a webmaster. LOL
Or what people do to my head, after I make a big mistake!
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC