Results 1 to 8 of 8

Thread: CSS Not working [Resolved]

  1. #1

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Resolved 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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>

  6. #6

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: CSS Not working [Resolved]

    td.bodytd

  8. #8

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width