newbie stuck at first CSS use

  • Unknown's avatar

    I tried to add some CSS lines to the twenty eleven CSS. That didn’t work, so I went back to doing simple things. I created this simple file, which looks OK to me, but my browser doesn’t pick up the embedded style seelctors. I can’t see what I’ve done wrong.
    `
    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title> A First trial web page</title>
    <meta charset=”utf-8″/>
    <style type=”text/css”>
    p {
    font-family: “Trebuchet MS”;
    font-weight: bold;
    background-color: navy;
    }
    </style>
    </head>
    <body>
    <p>This is the first trial page</p>
    <p>It’s never simple</p>

    <p>Wilkinson and Pickett teach at Britain’s University of York, and they aim for an international audience. Yet they seem to have America in mind when they remark that “instead of a better society, the only thing almost everyone strives for is to better their own position.” Here too we’re into hyperbole. The United States has a large stratum of professionals who choose public service careers; indeed much, even most, of the middle class doesn’t set its sights on more than routine personal advancement. Still, it’s appropriate to ask how many of the rich care about creating a “better society.” Wealth brings higher-quality health care, private schooling, and personal pension plans, along with shielding from lines, crowds, and captious service.</p>

    </body>

    </html>

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

  • Unknown's avatar

    Staff do provide CSS support but will not be available until Tuesday. http://en.support.wordpress.com/contact/

  • Unknown's avatar

    Thank you, i”ll put my query there

  • Unknown's avatar

    You will find that you won’t be able to do that. Staff will respond to you in this thread when they return.

  • Unknown's avatar

    At WordPress.com, you can add HTML to posts or pages using the HTML editor, but you should not add doctype, html, or body tags. You should just add HTML for content areas. See http://en.support.wordpress.com/editors/#html-editor

    In order to add CSS to a WordPress.com blog, you should purchase the Custom Design upgrade and add the code to the Appearance → Custom Design → CSS page.

    For example, add the following from your example above to your Appearance → Custom Design → CSS page and click the Preview button and you’ll see how it works:

    p {
    font-family: "Trebuchet MS";
    font-weight: bold;
    background-color: navy;
    }
  • The topic ‘newbie stuck at first CSS use’ is closed to new replies.