Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hardy Wang 91 posts 112 karma points
    Jan 31, 2012 @ 16:06
    Hardy Wang
    0

    How shall I create styles in this situation

    Let's say I have a CSS file with following styles defines

    h1.home {
        color: #333;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 32px;
        font-weight: bold;
        line-height: normal;
        text-shadow:1px 1px 1px #999999;
        text-align:center;
        margin: 10px 0 30px 0;
    }

    h2.home {
        color: #68144b;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 30px;
        font-weight: bold;
        line-height: normal;
        text-shadow:1px 1px 1px #999999;
        text-align:center;
    }

    h3.home {
      color: #588a9e;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 18px;
      font-weight: bold;
      line-height: normal;
      text-shadow:1px 1px 1px #999999;
      text-align:center;
    }

    And in HTML I have

    <h1 class="home">....</h1>

    <h2 class="home">....</h2>

    <h3 class="home">....</h3>

    In order to show the styles in rich text editor, I need to create a "home" style to show in the style dropdown, but from rich editor how can a user tells the difference among "home" for h1, h2 or h3?

Please Sign in or register to post replies

Write your reply to:

Draft