Support » Themes and Templates » CSS Not Working

  • I am actually creating my templates from ground zero.

    Here’s my index.php code:

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
    <html>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
    <link type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’); ?>/style.css”>
    <title><?php bloginfo(‘name’); ?></title>
    </head>
    <body>
    <div class=”banner”></div>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class=”posttitle”><?php the_title(); ?></div>
    <div class=”posttime”><?php the_date(); ?></div>
    <div class=”postcontent”><?php the_content(); ?></div>
    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    </body>
    </html>

    Here’s my css:
    body {
    background-color: White;
    }
    .banner {
    background-image: url(images/banner.gif);
    margin-left: 30%;
    }

    .posttitle {
    font-family: “Lucida Grande”, Verdana;
    color: Black;
    font-size: 12px;
    font-weight: bold;
    width: 300px;

    }

    .postcontent {
    font-family: “Lucida Grande”, Verdana;
    color: Black;
    font-size: 11px;
    text-align: left;
    width: 300px;
    }

    .posttime {
    font-family: “Lucida Grande”, Verdana;
    color: Black;
    font-size: 11px;
    width: 300px;
    }

    My URL at http://modusvivendi.insatiably.net/

    Please help….

Viewing 1 replies (of 1 total)
  • You’re presently only calling to the stylesheet directory (and not the stylesheet itself) in the <link> tag pointing to your css. Check to make sure it’s this in the <head> of your templates:

    <link type="text/css" media="screen" href="<?php bloginfo('stylesheet_url'); ?>">

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Not Working’ is closed to new replies.