HREF problem

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 1st, 2006, 20:53
New Member
Join Date: Dec 2006
Location: Portsmouth
Age: 65
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 1st, 2006, 22:01
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 1st, 2006, 22:25
New Member
Join Date: Dec 2006
Location: Portsmouth
Age: 65
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 4th, 2006, 11:38
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 4th, 2006, 16:31
New Member
Join Date: Dec 2006
Location: Portsmouth
Age: 65
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Thanks moojoo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 5th, 2006, 19:06
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Don't forget a:active
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 6th, 2006, 16:03
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 7th, 2006, 05:43
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Haha. Is the focus pseudo-class valid CSS? Not that the active property is that important in 99% of the cases.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 8th, 2006, 20:37
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 9th, 2006, 19:44
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

An easy way to remember it is "LoVe HAte"

Link
Visited
Hover
Active
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Dec 9th, 2006, 20:53
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Dec 10th, 2006, 01:56
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

hehehe...lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Dec 10th, 2006, 11:20
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Quote:
A nerd is someone whose life revolves around computers and technology. A geek is someone whose life revolves around computers and technology, and likes it!!
Dude your signature is so class!


Whats this input:focus {} that was talked about earlier? I've never came across focus!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Dec 10th, 2006, 11:54
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Thanks....I liked it!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Dec 11th, 2006, 02:41
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

It's apparently the IE version of :active.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Dec 13th, 2006, 18:05
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Dec 13th, 2006, 23:53
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Haha, no idea. I was hoping Google might give me some love, but not this time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Dec 14th, 2006, 00:15
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

give me some love....lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Dec 14th, 2006, 00:23
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HREF problem

Haha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old Dec 14th, 2006, 20:36
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
color, css, href

Thread Tools