Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] First WordPress Theme

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27886
    dlittle800
    Member

    Hi,

    I’ve been working my way through my first theme with screencast #26

    For some reason though, I am not able to get to my background image to show (and reapeat-x).

    Using XXAMP and localhost, I have copied Chris’s recommended CSS reset, but still no luck.

    My conclusion is that I’ve done something wrong with the CSS (or it’s something in the header??)

    Here’s my CSS – can you see anything wrong? (Header CSS is below that)
    +++++++++++++++

    /*
    RESET
    */

    * { margin: 0; padding: 0; }
    html { overflow-y: scroll; }
    html, body { height: 100%; }
    body { font-size: 62.5%; font-family: Arial, sans-serif; color: #272727; background: url(‘/images/header_bg.png’) top center repeat-x white; }
    ul { list-style: square inside; }
    ol { list-style: decimal inside; }
    a { outline: none; text-decoration: none; }
    a img { border: none; }
    img { vertical-align: middle; }
    table { border-collapse: collapse; }

    /*
    UTILITY
    */

    .floatLeft { float: left; }
    .floatRight { float: right; }
    .clear { clear: both; }
    .button { border: 1px solid #272727; background: white; padding: 3px 8px; -moz-border-radius: 5px; -webkit-border-radius: 5px; color: #272727; }
    .button:hover { background: #990000; color: white; }

    /*
    STRUCTURE
    */

    #page-wrap { width: 960px; margin: 0px auto -250px; min-height: 100%; height: auto !important; height: 100%; }
    #push { height: 250px; }


    <!–HEADER CSS–>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml&quot; <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11"&gt;

    <title>
    <?php if (is_home()) { echo bloginfo(‘name’);
    } elseif (is_404()) {
    echo ‘404 Not Found’;
    } elseif (is_category()) {
    echo ‘Category:’; wp_title(”);
    } elseif (is_search()) {
    echo ‘Search Results’;
    } elseif ( is_day() || is_month() || is_year() ) {
    echo ‘Archives:’; wp_title(”);
    } else {
    echo wp_title(”);
    }
    ?>
    </title>

    <meta http-equiv="content-type" content="<?php bloginfo(‘html_type’) ?>; charset=<?php bloginfo(‘charset’) ?>" />
    <meta name="description" content="<?php bloginfo(‘description’) ?>" />
    <?php if(is_search()) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php }?>

    <link rel="stylesheet" type="text/css" href="<?php bloginfo(‘stylesheet_url’); ?>" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Feed" href="<?php bloginfo(‘rss2_url’); ?>" />
    <link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />

    <?php wp_head(); ?>

    </head>

    <body>

    <h1>
    <a href="<?php echo get_option(‘home’); ?>/"><?php bloginfo(‘name’); ?></a></h1>

    #70578
    dlittle800
    Member

    Thx – problem solved.

    Part of the problem was that I was redirecting to a reset file from the style.css
    File permissions may have been a issue too.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.