This is a discussion on "HREF problem" within the Web Page Design section. This forum, and the thread "HREF problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
HREF problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
HREF problem
Well today is my first day with CSS and whilst I'm loath to ask the question, I have now been surfing the net for an eternity and can't find the answer.
If I use <a href="archive.htm">ARCHIVES</a> the text colour is as it should be, but this file is in the archives folder, so when I put <a href="archives/archive.htm">ARCHIVES</a> the text changes to a grey colour. This is what I have in the css file: a:link {color: #666699} a {text-decoration:none} a:hover {color:white} |
|
|
|
#2
|
||||
|
||||
|
Re: HREF problem
If they're the same page with just different paths to them, I would assume it's just a browser problem. You could most likely avoid this by making your links full paths everywhere like this: /information/archive/archive.htm
No matter what directory you're currently in, it will go to that page. |
|
#3
|
|||
|
|||
|
Re: HREF problem
Not quite sure what you mean there:
I thought <a href="archives/archive.htm">ARCHIVES</a> was correct as the archives folder is off the main folder rather like C:\archives\archive.htm Do you mean it should be <a href="/archives/archive.htm">ARCHIVES</a> |
|
#4
|
|||
|
|||
|
Re: HREF problem
Order goes:
a:link a:visited a:hover a:link { color: #666699; text-decoration:none; }
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: HREF problem
Thanks moojoo
|
|
#6
|
||||
|
||||
|
Re: HREF problem
Don't forget a:active
|
|
#7
|
|||
|
|||
|
Re: HREF problem
:active is IE's ass backwards :focus handler.. demit
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#8
|
||||
|
||||
|
Re: HREF problem
Haha. Is the focus pseudo-class valid CSS? Not that the active property is that important in 99% of the cases.
|
|
#9
|
|||
|
|||
|
Re: HREF problem
input:focus {} etc is completely valid but IE of course doesn't read it so from what I know :active is IE's handler for that sort of stuff. Ugh my head hurts.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#10
|
|||
|
|||
|
Re: HREF problem
An easy way to remember it is "LoVe HAte"
Link Visited Hover Active |
|
#11
|
||||
|
||||
|
Re: HREF problem
I haven't heard that one before. But I also just learned SohCah Toa today. God I wish I've known that in high school.
|
|
#12
|
|||
|
|||
|
Re: HREF problem
hehehe...lol
|
|
#13
|
|||
|
|||
|
Re: HREF problem
Quote:
Whats this input:focus {} that was talked about earlier? I've never came across focus! |
|
#14
|
|||
|
|||
|
Re: HREF problem
Thanks....I liked it!!
|
|
#15
|
||||
|
||||
|
Re: HREF problem
It's apparently the IE version of :active.
|
|
#16
|
|||
|
|||
|
Re: HREF problem
TEKJNFCRBCB <-- classic.A brownie to whoever can figure out what that is for. Give you a hint. Think El Presidente.
Pronounced Tek-Gin-Fuker-bucb
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#17
|
||||
|
||||
|
Re: HREF problem
Haha, no idea. I was hoping Google might give me some love, but not this time.
|
|
#18
|
|||
|
|||
|
Re: HREF problem
give me some love....lol
|
|
#19
|
||||
|
||||
|
Re: HREF problem
Haha
|
|
#20
|
|||
|
|||
|
Re: HREF problem
Last 11 us presidents heh
Truman, Eisenhower, Kennedy, Johnson, Nixon, Ford, Carter, Reagan, Bush, Clinton, Bush
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| color, css, href |
| Thread Tools | |