#1
  1. No Profile Picture
    #-------------------------
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    you s of a
    Posts
    35
    Rep Power
    13

    CSS problem: IE6 <td>


    I have a css stylesheet that has:

    td.itemtitle ( background: #efe; font-size: 16pt; font-weight: bold; )

    then my html page has:

    <table>
    <tr>
    <td class="itemtitle ">Title</td>
    </tr>
    </table>

    But the css doesn't get applied! Why is this!
    The following css line does work, though... it's just when applying a class to a td that it doesn't work:

    td { background:#000000; text-align:left; font-style:italic; color:yellow; padding-left:15px }


    what's going on!?
    thanks
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Nottingham, UK, EU
    Posts
    11
    Rep Power
    0
    try removing the space after itemtitle and before the quote

    The following works, your's did not.

    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <
    html>
    <
    head>
    <
    title>Untitled Document</title>
    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <
    style type="text/css">
    <!--
    td.itemtitle background#eeffee; font-size: 16pt; font-weight:bold;}
    -->
    </
    style>
    </
    head>
    <
    body>
    <
    table>
    <
    tr>
    <
    td class="itemtitle">Title</td>
    </
    tr>
    </
    table>
    </
    body>
    </
    html
  4. #3
  5. No Profile Picture
    #-------------------------
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    you s of a
    Posts
    35
    Rep Power
    13

    got it: user error


    crap... the problem was just that I had parenthesis instead of brackets on that one.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Nottingham, UK, EU
    Posts
    11
    Rep Power
    0

    Re: got it: user error


    Originally posted by 99miles
    crap... the problem was just that I had parenthesis instead of brackets on that one.
    ooops, noticed that too, just assumed it was a copy and paste error
  8. #5
  9. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956

    Edging toward OT


    It appears that a more appropriate set of tags would be:
    Code:
    <table border="" class="" summary="">
      <caption class="">Table Name</caption>
      <thead class="">
        <tr>
          <th>col 1 header</th>
          <th>col 2 header</th>
          <th>col 3 header</th>
        </tr>
      </thead>
      <tbody class="">
        <tr>
    .
    .
    .
    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.

IMN logo majestic logo threadwatch logo seochat tools logo