Results 1 to 6 of 6

Thread: (HTML & CSS) My class tag won't work. **Resolved**

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML & CSS) My class tag won't work. **Resolved**

    In my style in the head of the document I have:
    Code:
    .button (background-color:#cccccc; text-decoration:none; text-align:center;}
    In the body down below I have the elements:
    Code:
    <span class="button">test</span>
    <a href="#" name="reservationfind" id="reservationfind" class="button" onClick="findRes()">Find</a>
    <a href="#" name="reservationnew" id="reservationnew" class="button" onClick="findRes()">New</a>
    <a href="#" name="reservationNavBack" id="reservationNavBack" class="button" onClick="resNav('back')"><<</a>
    <a href="#" name="reservationNavForward" id="reservationNavForward" class="button" onClick="resNav('forward')">>></a>
    they are unaffected.
    What gives?
    Michael
    Last edited by msimmons; Sep 16th, 2002 at 10:49 AM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    What property isn't working? If it's the text-align then it shouldn't as you are trying to apply them to inline elements. I think it will only work in block elements like DIV and P.

    But also are those curly brackets or just plain parenthesis, 'cause they should be curley braces: { and }.

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    It was every property. But it works now. The problem was I led it with a paren "(" and closed it with a bracket "}" I knew they were supposed to be brackets so not sure what happened and didn't notice while I was trying to get it to work (had the same problem w/javascript once).
    Thanks a million,
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    No problem, but I am going to have to charge you

  5. #5

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Kinda like my co's DSL service... once it was down and we had to call them out. Turns out it was something stupid (and our fault) so they charged us for comming out.

    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Ahh so you're familier with this policy then!

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