Hey,
also ich habe bis jetzt alles ganz weit geschafft, konnte auch das Template so ziemlich weiträumig umbasteln! Nur jetzt habe ich ein kleines Problemchen:
Ich habe ein Bild, was ich als Hintergrund setzen möchte. Nicht per Background-Image, sondern per DIV-Layer und z-index, da ich das flexibler finde.
Jetzt habe ich per div und img src in der index.php dieses Bild eingepflegt. Im stylesheet die Position bestimmt und auch z-index:2; eingegeben. Für #content (das ist das DIV-Layer, welches in der Index ist, also wahrscheinlich den ganzen Inhalt anspricht) habe ich z-index:2; vergeben und wenn ich nun die Seite aktualisiere, dann ist zwar das Bild da, jedoch über den Inhalt :/
Hier nochmal die index.php
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php require('post.php'); ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<div id="main_bg"><img src="http://s7.directupload.net/images/110808/vus9vcuw.png"></div>
Alles anzeigen
Und hier das Stylesheet:
/*
Theme Name: Black-LetterHead
Theme URI: http://ulyssesonline.com
Description: Black Letterhead is a 2-column minimalistic theme with a black background.
Author: Ulysses Ronquillo
Author URI: http://ulyssesonline.com
Version: 1.5
Tags: two columns, fixed width, black, orange, widgets, minimalist, right sidebar, dark, graphics free,
The CSS, XHTML and design is released under GPL:
http://www.opensource.org/licenses/gpl-license.php
*/
/* Begin Typography & Colors */
body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: Helvetica;
background-color: #000;
background-image: url(http://s1.directupload.net/images/110802/6nczgz69.jpg);
color: #B0B0B0;
text-align: center;
}
#page {
text-align: center;
}
#header {
background-color: #000;
}
#content {
font-size: 1.2em;
z-index: 1;
}
.widecolumn .entry p {
font-size: 1.05em;
}
.narrowcolumn .entry, .widecolumn .entry {
line-height: 1.4em;
}
.widecolumn {
line-height: 1.4em;
}
.narrowcolumn .postmetadata {
text-align: left;
}
.alt {
background-color: #000;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
small {
font-family: Helvetica;
font-size: 0.9em;
line-height: 1.5em;
}
strong {
color: #E4D3A6;
}
h1 {
font-family: Helvectica;
font-weight: bold;
}
h2, h3 {
font-family: Helvetica;
}
h1 {
font-size: 3.4em;
text-align: center;
text-transform: uppercase;
letter-spacing: 12px;
}
.description {
font-size: 1.2em;
text-align: center;
letter-spacing: .6em;
}
h2 {
font-size: 1.7em;
}
h2.pagetitle {
font-size: 1.7em;
}
#sidebar {
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
#sidebar h2 {
font-family: Helvectica;
font-size: 1.2em;
}
h3 {
font-size: 1.4em;
}
h1, h1 a, h1 a:hover, h1 a:visited, .description {
text-decoration: none;
color: #FD5A1E;
}
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
color: #E4D3A6;
}
h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar h2, #wp-calendar caption, cite {
text-decoration: none;
}
.entry p a:visited {
color: #FD5A1E;
}
.commentlist li, #commentform input, #commentform textarea {
font: 0.9em helvectica;
}
.commentlist li {
font-weight: bold;
}
.commentlist cite, .commentlist cite a {
font-weight: bold;
font-style: normal;
font-size: 1.1em;
}
.commentlist p {
font-weight: normal;
line-height: 1.5em;
text-transform: none;
}
#commentform p {
font-family: Helvectica;
}
.commentmetadata {
font-weight: normal;
}
#sidebar {
font: 1em Helvetica;
}
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike {
color: #666;
}
code {
font: 1.1em 'Courier New', Courier, Fixed;
}
acronym, abbr, span.caps
{
font-size: 0.9em;
letter-spacing: .07em;
}
a, h2 a:hover, h3 a:hover {
color: #FD5A1E;
text-decoration: none;
}
a:hover {
color: #707070;
text-decoration: underline;
}
#wp-calendar #prev a {
font-size: 9pt;
}
#wp-calendar a {
text-decoration: none;
}
#wp-calendar caption {
font: bold 1.3em Helvetica;
text-align: center;
}
#wp-calendar th {
font-style: normal;
text-transform: capitalize;
}
/* End Typography & Colors */
/* Begin Structure */
body {
margin: 0;
padding: 0 0 20px 0;
}
#page {
margin: 30px auto;
padding: 0;
width: 800px;
}
#header {
left:80px;
}
.narrowcolumn {
float: left;
padding: 0 0 20px 45px;
margin: 0px 0 0;
width: 450px;
}
.widecolumn {
padding: 10px 0 20px 0;
margin: 5px 0 0 150px;
width: 450px;
}
.pagepost {
margin: 0 0 40px;
border-top: 1px solid #000;
}
.post {
margin: 0 0 40px;
text-align: left;
border-top: 1px solid #000;
}
.widecolumn .post {
margin: 0;
}
.narrowcolumn .postmetadata {
padding-top: 5px;
}
.widecolumn .postmetadata {
margin: 30px 0;
}
#footer {
padding: 50px 0 0 0;
margin: 0 auto;
width: 760px;
clear: both;
}
#footer p {
margin: 0;
padding: 20px;
text-align: center;
}
/* End Structure */
/* Begin Headers */
h1 {
padding-top: 40px;
margin: 0;
}
.description {
text-align: center;
}
h2 {
margin: 30px 0 0;
}
h2.pagetitle {
margin: 0px;
padding: 30px 0 0 0;
border-top: 1px dashed #555;
}
#sidebar h2 {
margin: 5px 0 0;
padding: 0;
}
h3 {
padding: 0;
margin: 30px 0 0;
}
h3.comments {
padding: 0;
margin: 40px auto 20px ;
}
/* End Headers */
/* Begin Lists
Special stylized non-IE bullets
Do not work in Internet Explorer, which merely default to normal bullets. */
html>body .entry ul, .entrytext ul, .pagepost ul {
margin-left: 0px;
padding: 0 0 0 30px;
list-style: none;
padding-left: 10px;
text-indent: -10px;
}
html>body .entry li, .entrytext li, .pagepost li {
margin: 5px 0 5px 10px;
}
.entry ul li:before, .entrytext ul li:before, #sidebar ul ul li:before, .pagepost ul li:before {
content: "\00BB \0020";
}
.entry ol {
padding: 0 0 0 35px;
margin: 0;
}
.entry ol li {
margin: 0;
padding: 0;
}
.postmetadata ul, .postmetadata li {
display: inline;
list-style-type: none;
list-style-image: none;
}
Alles anzeigen
http://s1.directupload.net/images/110808/676ahf7r.png Und hier die Liste der .php-Dateien!
Ich bitte um Hilfe :)
Danke
-Moe