Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

2 sets of css links, 2nd set wont work?!

Featured Replies

<html>

<head>

<title>site</title>

<STYLE type="text/css">
<!--
.class1 a:link { color: #ffffff; text-decoration: none; }
.class1 a:visited { color: #ffffff; text-decoration: none; } 
.class1 a:hover { color: #000000; } 

.class2 a:link { color: #000000; text-decoration: bold; }
.class2 a:visited { color: #000000; text-decoration: bold; }
.class2 a:hover { color: #000000; text-decoration: none; }

//-->
</STYLE>

</head>

<body bgcolor="#FFFFFF" cellpadding=0 leftmargin="0px" topmargin="0px" marginwidth="0px" marginheight="0px">

 <table height="100%" width="100%" border="0" cellpadding="0" CELLSPACING="0" bordercolor="#FFFFFF">
  <tr valign="top">
   <td valign="top"><center>

   <table height="100%" width="1000" border="0" cellpadding="1" bordercolor="#FFFFFF" background="background 2- sample1.gif">
    <tr>
     <td width="115" bgcolor=#F7F7F7> </td>
     <td valign="top" width="195" bgcolor="#31528C" colspan="2" height="80"><align=right><img src="banner.jpg"></td>
     <td width="115" bgcolor=#F7F7F7> </td>
    </tr>
    <tr>
     <td width="115" bgcolor="#CED6DE"> </td>
     <td width="195" bgcolor=#ffffff background=centerbg.jpg><font face="arial"><b><span class="class1">

     <td height="180" width="600" bgcolor=#FFFFFF background=centerbg.jpg>

<table height="100%" width="595" border=0>
<tr>
<td valign=top><br>
<font size=3 font face=arial>
<b>Welcome</b><br><br> 

<center><a href="claimpack.pdf" target="_blank"><span class="class2">Click here to Download Claim Pack</span></a> 

   </td>
  </tr>
 </table>

</body> 

</html>

 

Ignor the messy tables etc, ive cut alot of code out. THe point im making is i call 2 sets of css links yet the 2nd set fails to change. Anyone know what the problem might be?

 

Thanks,

Marley

Very hard to see in your code but :

.class1 a:link { color: #ffffff; text-decoration: none; }

would target a link inside an element with a class of 'class1'. I don't see any nested links in your html?

.class2 a:link { color: #000000; text-decoration: bold; }

would target a link inside an element with a class of 'class2'. But the <span class="class2"> tags are inside the <a> tags.

 

Welcome to the forum btw :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.