New Theme Css Help
-
Hi, i’m converting my blog to a wordpress theme and i’ve run into a big problem, the header is moved to the left and i dont know how to move it, this is what it lookes like:
https://www.philip.hotserv.dk/blog/
what it should look like:
https://www.philip.hotserv.dkCSS:
[code]
body {
margin: 0px;
background: #cccccc;
color: #303030;
text-align: center;
font-family: "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, helvetica, sans-serif;
line-height: 120%;
}#pagecontainer {
display: block;
width: 520px;
background: url(images/Background.gif);
text-align: left;
margin: 100px auto 20px auto;
}#gradientcontainer {
background: url(images/Header.gif) no-repeat;padding: 0px;
margin: 10px auto 20px auto;
}#dashed-divider {
display: block;
height: 1px;
background: url(images/Dash.gif);
margin: 0px 4px 20px 2px;
}h1 {
background: none;
text-align: center;
margin: 0px;
padding-top: 1px;
}
[/code]header.php
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head profile="https://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<!-- BEGIN CONTAINER -->
<div id="gradientcontainer">
<h1><img src="./images/CrashProneHeader.gif" /></h1>
<div id="pagecontainer"><div id="dashed-divider"></div>[/code]
Like you see the header is moved all the way to the left, and i need help?
-Philip
- The topic ‘New Theme Css Help’ is closed to new replies.