SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,387
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by MatthewBOnline View Post
    John Betong,

    The main problem is a:visited in all the CSS. It does not work.

    Matt.
    HI,

    You have used code like this "#link a:link, a:visited " all over the place:

    Code:
    #link a:link, a:visited {
    	display:block;
    	color:black;
    	background-color:none;
    	text-align:center;
    	text-decoration:none;
    }
    #link a:hover, a:active {
    	background-color:none;
    	text-decoration: underline;
    }
    A comma separated list is just a list of selectors none of which have anything in common with each other apart from the property/values you supply below.

    #link a:link, a:visited

    You are first styling a:link with an id of #link and then after the comma you are styling all visited links. In further rules down the page you have made the same mistake and redefined all visited links again and not just the specific one you wanted.

    It should be like this:
    Code:
    #link a:link, #link a:visited {
    	display:block;
    	color:black;
    	background-color:none;
    	text-align:center;
    	text-decoration:none;
    }
    Now only links and visited links within that specific id will be styled.

    Look through the css and change all the other instances of this (and for :active also).

  2. #27
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,841
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    HI,
    You have used code like this "#link a:link, a:visited " all over the place:

    <snip>
    I forgot to mention in my post #25 that I /*remmed*/ all the links except the ones I was testing.

    I have uploaded the modified webpage and CSS : here

    I was still unable to make the visited links change colour, etc. The visited links were tested with the "The Social Media external links, Facebook, Youtube, etc. The links failed on both Opera and Firefox.

    Any ideas why the visited links don't do what I want them to do?
    Last edited by John_Betong; Mar 1, 2014 at 08:01. Reason: spelling: not my fortay
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014

  3. #28
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,387
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by John_Betong View Post

    Any ideas why the visited links don't do what I want them to do?
    The footlink a:visited rules are working for me in all browsers. They go from black to blue when visited which seem to match the rules set. You have to follow the link and then return with the back button to see the effect.

    Or am I looking at the wrong things?

  4. #29
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,841
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    The footlink a:visited rules are working for me in all browsers. They go from black to blue when visited which seem to match the rules set. You have to follow the link and then return with the back button to see the effect.

    Or am I looking at the wrong things?
    Many thanks for taking the time for checking the links. I think I need to see an optician
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •