|
-
Jun 15th, 2005, 02:32 PM
#1
CSS Not working [Resolved]
This is really simple and working in my footer table but I dont see whats missing for the body of the table.
I have this CSS for the anchors but the underline and color change are not changing.
Code:
body
{
background-color: #333333;
color: #FFFFFF;
font-family: verdana, helvetica, arial;
font-size: small;
}
td .bodytd a:hover
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color: #AEACAC;
text-decoration: underline;
}
td .bodytd a:link, td .bodytd a:visited, td .bodytd a:active
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color=#FFFFFF;
text-decoration: none;
}
'...
<BODY>
<TABLE>
<TR>
<TD CLASS="bodytd">blah, <a href="About:Blank">blah</a>, blah...
Thanks
Last edited by RobDog888; Jun 15th, 2005 at 04:04 PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 15th, 2005, 02:34 PM
#2
Re: CSS Not working
try this:
Code:
.bodytd a:hover
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color: #AEACAC;
text-decoration: underline;
}
.bodytd a:link, .bodytd a:visited, .bodytd a:active
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color=#FFFFFF;
text-decoration: none;
}
Other wise it tries to apply .bodytd inside of TD tag, rather than for them... did that make sense?
Tg
-
Jun 15th, 2005, 02:40 PM
#3
Re: CSS Not working
I had found some code from a search that suggested what I posted was the correct way. It worked for my footer CSS.
Still no dice. 
This is what I did for my footer.
Code:
td .copyright
{
font-size: xx-small;
font-family: verdana, helvetica, arial;
color=#AEACAC;
}
td .copyright a:link, td .copyright a:visited, td .copyright a:active
{
font-size: xx-small;
font-family: verdana, helvetica, arial;
color=#AEACAC;
text-decoration: none;
}
td .copyright a:hover
{
font-family: verdana, helvetica, arial;
font-size: xx-small;
color=#FFFFFF;
text-decoration: underline;
}
'...
<TD CLASS="copyright" ALIGN="CENTER" COLSPAN="4" WIDTH="100%">
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 15th, 2005, 02:46 PM
#4
Re: CSS Not working
Doh! Got it. It was the order that the CSS' were created in? I changed it to this and it works now.
Code:
.bodytd
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color=#FFFFFF;
}
.bodytd a:link, .bodytd a:visited, .bodytd a:active
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color=#FFFFFF;
text-decoration: none;
}
.bodytd a:hover
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color: #AEACAC;
text-decoration: underline;
}
I dont do allot of sites. I still dont understand why?
Thanks TG
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 16th, 2005, 01:29 AM
#5
Re: CSS Not working [Resolved]
Order matters because of the 'order' in which hovers, visited, active and normal link are rendered.
Second,
td .bodytd seems wrong, because that implies an element of class bodytd inside a <td>
-
Jun 16th, 2005, 01:33 AM
#6
Re: CSS Not working [Resolved]
Ok, Thanks. If I wanted a class for a TD but not for all TDs then wouldnt I do a
Code:
TD .bodytd a:link
{
font-family: verdana, helvetica, arial;
font-size: x-small;
color=#FFFFFF;
text-decoration: none;
}
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 16th, 2005, 03:44 AM
#7
Re: CSS Not working [Resolved]
-
Jun 16th, 2005, 10:43 AM
#8
Re: CSS Not working [Resolved]
Oh, now I think I get it.
Thanks
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|