For help with CSS you must post a link to your site – code alone is useless.
Ok, sorry. Here it is: http://www.conceptualisms.org/texts/alles-ist-wahr-oder-uber-konzeptuelle-texte-und-literatur/
And this is a part of the code i tried:
#wrapper {
background-color: red;
position: absolute;
margin: 0 auto;
center:0px;
top:0px;
width:1000px;
}
There is no wrapper class in the HTML on that page – so no it’s not going to work. You’d need to modify the .php files (probably header.php and footer.php) to add a wrapper.
Where did this theme come from?
Absolute positioning is also hardly ever a good idea…
Thank you!
Now I changed the body of the header.php to
<body>
<div id="wrapper">
<div id="header">
<?php if(function_exists('bcn_display'))
{
bcn_display();
}?>
</div>
</div>
</body>
Still no effect at all. Shouldn’t the red test-frame appear at least?
The blog is an old “inherited” one. Sadly, the former programmer can’t be asked anymore. It might or might not be based on “elegantwhtite”. i’m not sure.
That seems to have created some mark-up errors –
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.conceptualisms.org%2Ftexts%2Falles-ist-wahr-oder-uber-konzeptuelle-texte-und-literatur%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
If the above is from your header.php file you should not have a closing body tag there…
You’d need to close that wrapper div in the footer.php file.
Ok, now it passed. Thanks. There was a wrapper in the single.php leftover from a previous attempt. Sorry.
I also deleted the closing body tag and one </div> in the header.php.
So header.php ends with
</head>
<body>
<div id="wrapper">
<div id="header">
<?php if(function_exists('bcn_display'))
{
bcn_display();
}?>
</div>
and this is the footer.php
</div>
</body>
</html>
Aaand: I changed the positions to relative. Works! Thank you WPyogi!