tag is not working on my blog??

  • Unknown's avatar

    Go to this webpage right here and you will see what I am talking about. My table is supposed to look like the table on this page. This is the html code that I am using above the table:
    <nohtml>
    <style type=”text/css”>
    .contentTable {
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    background:#FFFFFF;
    color:#000000;
    text-align:justify;
    }
    h1 {
    text-align:center;
    font-size:18px;
    }
    h4 {
    text-align:left;
    font-size:12px;
    }
    .teamScheds {
    font-size:12px;
    font-weight:bold;
    text-decoration:underline;
    }
    .champions {
    font-size:12px;
    width:728px;
    border:none;
    padding:2px 2px 2px 2px;
    text-align:left;
    background:#DEDEDE;
    }
    .headerChampions {
    text-align:center;
    background:#AE2103;
    color:#FFFFFF;
    }
    .subheaderChampions {
    text-align:left;
    background:#353535;
    color:#FFFFFF;
    font-weight:bold;
    }
    .textLink {
    width:728px;
    border:none;
    padding:2px 2px 2px 2px;
    }
    .textLinkHeader {
    text-align:left;
    font-weight:bold;
    color:#FFFFFF;
    background:#AE2103;
    }
    .textLinkCopy {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    border:thin;
    text-align:left;
    font-size:10px;
    background:#DEDEDE;
    }
    </style>
    </nohtml>
    But everytime I publish it the that html code does not work here on WordPress but whenever I try that code on another website it works with my html table. And I’ve also noticed that whenever I publish this and go back to edit it the <nohtml><style type=”text/css”></nohtml> html tag disappears. Why is this?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Same thing happened to me. I think it’s a deliberate setting to stop tracking tags, so they take out the opening bracket. I’ve left my tracking tags there commented out, they probably don’t work though since the javascript opening brackets also magically vanished!

    I’m not a developer though, so this is just a random guess.

  • Unknown's avatar

    Hi to you two. I believe the problem is that you are inserting code that is automatically rejected by WordPress.com:

    Add Code to Your Site

  • Unknown's avatar

    1. You cannot put CSS into a post or page. You have to have the Custom Design Upgrade and then it has to be put into the CSS edit window at appearance > custom design > CSS.

    2. Even with it added to the CSS, the header selectors you have in the above, h1, h4, will likely end up overriding all h1 an h4 styling in the tables and messing up the rest of the site. Those would have to be changed to a different, unique selector name and then styled accordingly.

    3. If you plan on doing a lot of these that have unique CSS (different from the style of this one) then wordpress.COM is not for you. In fact, adding this sort of CSS/HTML combination to a post or page with a self-hosted wordpress installation will get stripped out as well. What you would likely want to do would be to create either a custom page template or a custom post type, which will require some experience with PHP scripting (a good bit if you want to keep from opening up security holes) and then the CSS has to be added to the

    4. This stuff is going to have to be hosted elsewhere if you stay at wordpress.COM and you will have to build proper HTML pages for the stuff. Even on a self-hosted installation it might be best to keep it all totally separate and just style the pages so they look similar to the wordpress theme.

  • Unknown's avatar

    First sentence in #2 needs some editing:

    2. Even with it added to the CSS, the header selectors you have in the above, h1, h4, will likely end up overriding all h1 an h4 styling in the rest of the site. Those would have to be changed to a different, unique selector name and then styled accordingly.

  • The topic ‘tag is not working on my blog??’ is closed to new replies.