Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049

    Unanswered: Any CSS Gurus here?

    Hi

    I need some help on CSS, is there anywhere on dbforums I can find such help?

    In my PHP file I have this:

    Code:
    <td align="right"><p class="heavyemphasis">Call us today on 08 8367 6099</p>

    In my CSS file, I have this:

    Code:
    p.heavyemphasis1 {  
     font-size: 110%;
     text-align: center;
     font-weight: bold;
     color: red;
    }
    
    p.heavyemphasis {
     font-size: 110%;
     text-align: center;
     font-weight: bold;
     color: red;
    }
    If I change the class in the php file to heavyemphasis1 (or any other name - I've tried three different names) it does not work (the text goes to 'standard'). If I change it to heavyemphasis, the CSS works fine.

    I am at a loss. I've spent 2 hours trying to figure out why and I've run out of patience. What could possibly cause this behaviour?

    Thanks for any help.

    Cheers

    ST
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    could you please create a small html-only page (either paste it here or upload it on your web server and give us the link) so that we have something to test on
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Sure can.

    Attached is basically that, plus my entire CSS file should you need it.

    Thanks very much for taking a look-see
    Attached Files Attached Files
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    I think I just worked it out.

    It's one of those CSS newbie mistakes.

    I'm testing now, will confirm once I am sure.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  5. #5
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Yup. Never mind.

    Thanks for asking me to create the basic HTM page! It lead me to check the basics, including the fact that I was referencing my CSS file absolutely (including the domain name) and I was under the assumption that I was referencing it relatively. I was also doing my testing locally and I forgot to upload the CSS file to the domain, so my testing environment couldn't see the new CSS elements.

    I just uploaded my CSS to my web server and it works fine again.

    Thanks for listening!
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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