CSS - Visited Link format won't apply
Hello,
The following is a column that I have in a table, and its cells are all hyperlinks that trigger some AJAX. The hyperlink works great. However, I would like the background color to turn white after the link has been clicked. It seems like this could be easily done with CSS, but it's not working as I would expect. Here is the code I have for the column:
print "<td class='ballot'>".'<span class="button" id="button'.$row['id'].'">'.'<a href="javascript:;" class="cell1" id="'.$row['id'].'">'.Vote.'</a>'.'</span>'."</td>";
I have the following CSS applied to the column:
table.navbar td a.cell1:link {
color: #000;
background-color: #A7E6FE;
text-decoration: none;
text-align: center;
vertical-align:middle;
height: 14px;
table.navbar td a.cell1:visited {
color: #fff;
background-color: #fff;
text-decoration: none;
text-align: center;
vertical-align:middle;
height: 14px;
.ballot { width: 40px;
a.ballot:visited {
color: #FFFFFF;
background-color: #FFFFFF;
I would expect this CSS to make the column turn white (color #FFFFFF) after its link has been clicked, but it's not happening. Any ideas why my CSS is not working?
Thanks in advance,
John
OK, below I listed the entire table, and all of the CSS that applies. The table has three columns, everything works great, but I want the background of the cells in third column to turn color #FFFFFF after they are clicked. I do not want the background of the cell in the first column to change color when it is clicked. Thanks.
if(mysql_num_rows($result)>0){
while($table=mysql_fetch_row($result)){
print "<p class=\"topic\">$table[0]</p>\n";
$r=mysql_query("SELECT * , votes_up - votes_down AS effective_vote FROM `$table[0]` ORDER BY effective_vote DESC")
print "<table class=\"navbar\">\n";
while($row=mysql_fetch_array($r)){
$effective_vote = $row['votes_up'] - $row['votes_down'];
print "<tr>";
print "<td>".'<a href="http://'.$row['site'].'" class="links2">'.$row['site'].'</a>'."</td>";
print "<td class='votes'>".'<span class="votes_count" id="votes_count'.$row['id'].'">'.number_format($effective_vote).'</span>'."</td>";
print "<td class='ballot'>".'<span class="button" id="button'.$row['id'].'">'.'<a href="javascript:;" class="cell1" id="'.$row['id'].'">'.Vote.'</a>'.'</span>'."</td>";
print "</tr>\n";
print "</table>\n";
else{
print "None found";
CSS:
.topic
width:500px;
margin-left:250px;
margin-top:30px;
text-align: left;
margin-bottom:3px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size: 25px;
font-weight: bold;
color:#000000;
table.navbar {
margin-left:250px;
margin-top:30px;
text-align: left;
font-family: Arial, Helvetica, sans-serif ;
font-weight: normal;
font-size: 12px;
color: #000000;
width: 550px;
background-color: #A7E6FE;
border: 1px #FFFFFF;
border-collapse: collapse;
border-spacing: 4px;
padding: 4px;
text-decoration: none;
table.navbar td {
border: 2px solid #fff;
text-align: left;
height: 20px
table.navbar td a{
display: block;
padding: 3px;
a.links2:link {
color: #000000;
text-decoration: none;
text-align:left;
margin-top:5px;
margin-bottom:2px;
margin-left:2px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
width: 150px;
height: 14px;
vertical-align:middle;
a.links2:visited {
color: #000000;
text-decoration: none;
text-align:left;
margin-top:5px;
margin-bottom:2px;
margin-left:2px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
width: 150px;
height: 14px;
vertical-align:middle;
a.links2:hover {
color: #000000; text-decoration: underline;
text-align:left;
margin-top:5px;
margin-bottom:2px;
margin-left:2px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
width: 150px;
height: 14px;
vertical-align:middle;
a.links2:active {
color: #000000;
text-align:left;
margin-top:5px;
margin-bottom:2px;
margin-left:2px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size: 12px;
width:150px;
height: 14px;
vertical-align:middle;
.votes { width: 125px;
.ballot { width: 40px;
a.ballot:visited {
color: #FFFFFF;
background-color: #FFFFFF;
table.navbar td a.cell1:link {
color: #000;
background-color: #A7E6FE;
text-decoration: none;
text-align: center;
vertical-align:middle;
height: 14px;
table.navbar td a.cell1:visited {
color: #fff;
background-color: #FFFFFF;
text-decoration: none;
text-align: center;
vertical-align:middle;
height: 14px;
table.navbar td a.cell1:hover, table.navbar td a.cell1:active {
border: 0px solid #fff;
color: #000;
background-color: #00F0F0;
text-decoration: none;
text-align: center;
height: 14px;
Similar Messages
-
Visited links using Safari on my iPad 2 won't stay the "visited" color
Visited links using Safari on my iPad 2 won't stay the "visited" color after I close the tab, put the iPad in sleep mode (or whatever it's called), or when I power off the iPad.
There are certain sites I visit where it comes in very handy to be able to see which links I've already clicked on. The links will stay the "visited" color during the time I'm on the site, but later they all go back to the "unvisited" color.
Is there any way I can fix this on an iPad?Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
When I'm on a page with multiple links (ie. Google Search, Craig's List, etc), and I click on a link, then return to the search page, Firefox doesn't show the visited links in purple. As a result I can't see which links I've visited, which makes browsing very difficult on some sites. I've updated my Color Settings to show visited links in purple, but it's not applying. What might be causing this?
I think I figured it out. My privacy settings were set as "Custom," so I chose "Remember History." Now the link colors seem to be working.
Thank you! -
CSS - some visited links always same color while others change?
i am using CSS and links like:
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
all fine here
but I have main menu navigation where i want the VISITED link color to always be the same - even after visited...
but the rest of the page can use = a:visited { color: #551a8b; }
just not the main menu ...
So how do i set that up?
BTW: Is it possible to have several css link setup code (as above) in the same page?Thanks - I'll give it a try - so I can do several in a css doc like ....?
with class name menu
.menu a { color: #00e; }
.menu a:visited { color: #551a8b; }
.menu a:hover { color: #06e; }
.menu a:focus { outline: thin dotted; }
and also with class name section1
.section1 a { color: #00e; }
.section1 a:visited { color: #551a8b; }
.section1 a:hover { color: #06e; }
.section1 a:focus { outline: thin dotted; } -
How do I stop Safari from Changing Visited Links Color's?
I recently switched from Firefox to Safari since I find Safari much faster. I do have one annoyance though. When I click a link (especially in forums) and revisit a page with that link, Safari is changing the link's color. Firefox did this too, it changed visited links from blue to purple.
I would like to set it somehow so Safari doesn't change the color of visited links at all. Is this possible? When I googled I saw many different posts about using custom made CSS style sheets. I just want to get an 'official' or more relevant answer since many opf those posts were years old. I'm using the latest Safari.
Thanks!AFAIK, it's not possible with preferences, per se. See http://discussions.apple.com/thread.jspa?messageID=7183566 and http://www.yourhtmlsource.com/stylesheets/csslinks.html for possible hints. You might also investigate modifying one of Safari's css files, inside the Safari app—left as an exercise, with no guarantees that you won't cripple something.
-
Visited links behaving badly in IE8
I have tested my site in many browsers and the links all appear as they are supposed to in all browsers, Mac and PC, except IE8 (surprise, surprise!). Even IE7 is OK. In IE8 only, my visited image links are all showing the underline style border-bottom-style: dotted; I set for the text links, despite my having only set those on specific divs containing the text. I have tried all sorts of other things: img { border-style: none; }; and adding individual border-bottom-style: none; class style to the images. My css was becoming a mess so I took out all the link styles and started again. But still can't solve it (and my css has become a bit of a mess again, in an attempt to find a solution... so please don't shout at me!). It's probably something very obvious but I've been looking at this for weeks and I'm tearing my hair out. Can someone help please? Here is a link to a page in my test site which displays the problem in IE8. The 'portfolio' link at the top of the page and the snail image should not have an underline when visited (or at all). http://www.cornucopia-design.co.uk/tablettest/cornucopia_meaning.html .
I'm on a Mac so it's a pain to have to reboot into Windows every time I want to check whether something I have tried with the css works. I've started using BrowserLabs but can't find out how to display a visited link. I'm using DWCS5.5 .
Any help would be greatly appreciated before I have a nervous breakdown! ThanksThank you for your suggestion Jtanna. You too, Murray. I realise I hadn't actually tested the links in IE9, (only the pages in BrowserLabs) so hadn't thought that it might well be showing in that too (I thought IE9 was supposed to have been a great improvement on previous versions).
I tried what you both suggested. Still the problem persists. I first put these two styles (which I realise are doing a similar job) near the top of my cascade, and when it didn't work then thought maybe I'd try them last on the list. But still those pesky underlines appear on my images in IE8/9. The frustrating thing is that every time I try something, I have to reboot my Mac in Windows mode to see the effects which takes so long (and I'm not going to line Microsoft's pockets by buying a PC just so I can sort out faults with their software!).
As I said earlier, my text link styles are only applied to specific divs as I thought that would stop them being applied globally. I'm sure something must be clashing or in the wrong order but I'm just too inexperienced to work out what it might be. I have literally been puzzling over this for weeks (on and off) and it is driving me insane. Especially when I suspect there is a simple solution staring me in the face. So any further help would be really appreciated. I know my css is getting to be a bit of a mess in the main pages as this example http://www.cornucopia-design.co.uk/tablettest/cornucopia_meaning.html, for which I apologise but there is another much simpler page which might be easier to fathom which uses a different stylesheet: http://www.cornucopia-design.co.uk/tablettest/drawing_services.html.
Many thanks, in hope! -
Visited Links color in DRW menu
Hey there,
I placed horizontal menu using spry menus from DRW CS3. I had
to change the colors to correspond the website.
I made the background green and the text(links) in the menu
and submenu items - white.
In all browsers and computers i had in home it works fine -
until someone told me that he see the links in BLUE color.
I'm using IE7, Firefox, Opera and Safari for Win. He use IE6.
I find other PC with IE6 - the same problem - ViSITED LINKS
are blue.
Can someone help with a solution???
The browser settings on both IE6 PCs were set to default (no
manual settings for HOVER and VISITED links).The best way to get an answer is to post a link to the website.
Can you provide one?
As a guess:
Links have five "states"
link (blue by default in most browsers)
visited (purple by default in most browsers)
hover
active
focus
If no rules are defined for one or more of the states then the browsers default color applies.
I'm guessing you've defined a CSS rule for a:link but nothing for a:visited. -
How to keep visited links from changing color?
FIRST, I want to say that it took me 10 minutes to find (accidentally) how to start a new thread. In my profile? Could it be any more obscure?
</rant>
Yeah, I go to change page properties and make links and visited links the same color. It still changes, and this happens to be on a page where the background color provides poor contrast to the color the links are changing to. Is there a way to do this that is not overridden by the web gods? Or whatever?
ThanksYeah, I'm a dinosaur.
Learned HTML from Elizabeth Castro's first edition; then went to DW MX,
where I am stuck. Works for me, obviously with imperfections, as I am
hardly cutting edge multimedial gripping Web designer.
Thanks for observations.
I'll ask for help again: I really, truly, cannot find how to start a
thread on the forum, nor reply to one, and all that. I don't see any FAQ
tht elementary, nor anyone to e-mail for guidance. If you can offer a
little of that, I will be grateful.
Thanks,
Denno
It's a very dated website using extremely outdated code.
Â
There's a whole mix of HTML formatting and font tags in there which were
deprecated 10+ years ago.
Â
This all means that the website will behave in strange ways sometimes.
Â
Although it can be fixed, it would take hours to debug, explain and
implement the changes required, particularly if you've never used CSS
styling before.
Â
You're better off investing some cash in a modern, well coded, CSS
formatted template which will give you a sound foundation.
e.g. http://www.projectseven.com/products/templates/index.htm
Â
Then you can add your content and get good results quickly.
> -
Visited links color strange behaviour
Hello,
Browsing my website on the web, visited links are PURPLE, while in Dreamweaver CS3, at Page Properties, I did not designate such color to the visited links.
What could be wrong here?
Thanks,
RobThe best way to get an answer is to post a link to the website.
Can you provide one?
As a guess:
Links have five "states"
link (blue by default in most browsers)
visited (purple by default in most browsers)
hover
active
focus
If no rules are defined for one or more of the states then the browsers default color applies.
I'm guessing you've defined a CSS rule for a:link but nothing for a:visited. -
Is there any way to prevent visited links from changing into a different color rather than returning to the original link color? (I know how to do this in HTML, but I can't find any way to do it in iWeb.)
Thanks in advance for your help.The best way to get an answer is to post a link to the website.
Can you provide one?
As a guess:
Links have five "states"
link (blue by default in most browsers)
visited (purple by default in most browsers)
hover
active
focus
If no rules are defined for one or more of the states then the browsers default color applies.
I'm guessing you've defined a CSS rule for a:link but nothing for a:visited. -
Visited Links - Override all link colors
Hi,
I'm using RH8 in WebHelp and IE. I read all the former postings regarding people having the same problem and some mentioned a fix in a .css but the .css wasn't available with the posting of March 25, 2008.
My visited link color seems to override all other link colors. Originally I had the link colors in a style sheet and changed the colors in the .css. That didn't work and all colors still were the visited link color. I deleted the link colors from this .css and added the link colors via the RoboHelp Edit Styles. Either way doesn't seem to work and all link colors are my visited color. I've tried clearing my cache several times and this doesn't work, neither does deleting the history.
Can anyone shed some light on this? Thanks very much for any help you can provide.Hi Leon,
Here is all the code with "a" type styles in the .css. Again, I also have the links also in the mini-TOC but didn't see a way via the Format Placeholder to change
this. Currently, most of my links are showing up as the "visited" color -- grey. I'm going to revisit this link issue again very soon but have to get a ton of content in now. I really appreciate your efforts.
Thanks,
Sue
A.expandspot {
cursor: hand;
font-style: italic;
font-size: 10pt;
font-family: Verdana;
color: #800000;
text-decoration: none;
SPAN.expandtext {
font-style: italic;
font-weight: normal;
color: #ff0000;
font-family: Verdana;
font-size: 8pt;
A.dropspot {
cursor: hand;
color: #008000;
font-style: italic;
font-size: 10pt;
text-decoration: none;
A.glossterm {
cursor: hand;
font-size: 10pt;
font-family: Verdana;
font-style: italic;
color: #0000ff;
text-decoration: none;
SPAN.glosstext {
font-style: italic;
font-weight: normal;
color: #0000ff;
font-family: Verdana;
font-size: 10pt;
OL,
UL {
margin-top: 0px;
margin-bottom: 0px;
p.breadcrumbs {
font-size: 8pt;
x-on-hover: fontchange(bold=on);
x-next-class: breadcrumbs;
x-next-type: p;
A.breadcrumbs {
font-size: 10pt;
A:link {
font-size: 10pt;
font-family: Verdana;
color: #0000ff;
text-decoration: underline;
A:visited {
font-size: 10pt;
font-family: Verdana;
color: #808080;
text-decoration: underline;
A:hover {
font-size: 10pt;
font-family: Verdana;
color: #0000ff;
A:active {
font-size: 10pt;
font-family: Verdana;
color: #0000ff;
text-decoration: underline;
A.popupspot {
font-size: 10pt;
font-family: Verdana; -
Office 365 pro plus 2013 update won't apply automatically
Hi
We have started to use office 365 pro plus 2013 click to run. The issue / problem we have is that the updates are installing but does not apply. The version of word,excel.. Is old
and i need to manually go to example word and account to apply the updates. I want the updates to automatically apply.
In the config file i have enabled updates. <Updates Enabled="TRUE" />. I have also enabled updates thru group policy and checked that the policy is applying.
In the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\propertyBag i have the following keys:
updatesenabled = 1
UpdatesDiscoveryPeriodComplete = 1
updatesreadytoapply = 15.0.4535.1511,en-us
UpdatesDiscoveryPeriodStartTime = 13026393682226
updatesthrottlevalue = 313
version = 15.0.4535.1004
Does anyone have this problem and know how to make the updates apply automatically. I know that if there are office applications open it won’t apply or update but i have a test
computer with no office applications running in the process list and still it won’t apply the updates.
Joakim TomrenPlease make sure that the necessary port isn't blocked in your environment.
http://technet.microsoft.com/en-us/library/jj219420.aspx#BKMK_C2RUpdates
Then, try to download the Office Deployment Tool and create an XML file with the instructions to deploy the Office 365 update, please refer to the link below:
http://blogs.technet.com/b/office_resource_kit/archive/2013/08/08/how-to-deploy-office-365-proplus-from-an-on-premises-web-portal.aspx
The following article may also help you:
http://technet.microsoft.com/en-us/library/gg998766.aspx
We may also post the thread to the forum for Office 365:
http://community.office365.com/en-us/forums/default.aspx
Cheers,
Tony Chen
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please contact
[email protected] -
Can I see the appearance of a visited link using BrowserLab?
I'm having a problem with my site. My image links are behaving as the should in every browser except in IE8 where they are showing an unwanted underline. As I'm on a Mac, it's a pain to have to reboot in Windows to check every time I make a change to the CSS (and I have tried so many things to get rid of the problem)... so BrowserLabs has been the answer to my prayers to check general development. However, I need to find out if I can see what visited links look like, as this is where my IE8 problem is. http://www.cornucopia-design.co.uk/tablettest/cornucopia_meaning.html . Thanks
Hi Lesley,
I'm sorry, but no, there isn't a way to do this currently. We would need to have that in our browser history to give that appearance, and each screenshot request can go to a new browser instance, so there is no simple way for us to do this.
Mark -
CSS for links display differently in Safari and Firefox
Hello all,
I am having some link display problems. The CSS code for my link display is as follows:
#sidebar_1 a{
text-decoration: none;
font-weight: bold;
#sidebar_1 a:link{
color: #CCC;
#sidebar_1 a:visited{
color: #000;
#sidebar_1 a:hover, #sidebar_1 a:active, #sidebar_1 a:focus{
color: #000;
Unfortunately, the website is not live yet so I can't direct you to it.
What happens: in Firefox, mousing over a link causes it to go black; but when the link is clicked and the new page has loaded, the link goes back to being gray even though the linked page is active. However, in Safari the links for visited pages stay black. Any ideas on why this is happening?
Thanks in advance for all your help.#sidebar_1 a:vistied {
color:#000;
is stating that all visited links in the #sidebar_1 div to be black. Are you saying that all visited links are black, outside the sidebar_1 div?
Jim -
CSS Button Links in HTML email not working in TB
Greetings,
Our company is creating an html email for customers and we are noticing the CSS button links don't work when viewing in Thunderbird 31 and 32 beta.
Does TB require unique coding to get these to work?
Any assistance would be appreciated...
-- PaulFrom the point of view of a user who views received email messages in Thunderbird, it doesn't support scripting. Straight links should work and and you can attach a link to an image.
Note that Thunderbird does NOT offer active links in the Compose window. So however you create it, you won't see it as the recipient does unless you save it and view it as a draft.
Maybe you are looking for
-
Facebook video chat compatibility in window 8.1
Please note that I can't able to find facebook video chat icon in window 8.1 operating system. Same has been available in window 7 and lover version. Please note that I was use same logging and I found this mismatch. Request you to please provide sol
-
I've added songs and vedios to iTunes in my computer then I synchronise it with my Ipad3 ..... For the songs it was OK but for the vedios I got a message that some format are not supported then the screen became black with no video or sound ....how
-
How do I find my vol reference number
-
What exactly is the newest QuickTime version for Snow Leopard
The current download on the Apple.com for quicktime is the version 7.xx, so is for Quicktime pro. But the version on my new macbook pro is 10.xx So what exactly is the newest version? And is there a pro version for 10.xx? PS. I also searched the appl
-
JDBC receiver MS SQL Server encryptation
Hi all, I have to configure a communication channel from a PI 7.0 to MS SQL Server 2005 database to execute updates. I have already deployed the com.microsoft.sqlserver.jdbc.SQLServerDriver driver. I have been asked whether SSL encryptation can be us