Forum Moderators: not2easy
i am new here and I am not very expert yet with coding.
I installed a wordpress blog.
Everything was fine until i decided to change the layout.
Now the blog is displayed perfectly in all the browsers, exception made for IE6.
The only problem is the HOME PAGE and the pages with double columns.
I have already tried to reduce the columns, to float them left and right... but nothing to do!
It doesnt work!
Please contact me for the website so u can have a look at it.
Unfortunately i am not allowed to post the link to my website.
Thanks.
As you can see, the header, footer , and content page are moved on the left side, without respecting any padding, any margins.
But if u see this page with Opera, Firefox, Mozilla, IE7, Maxthon or whatever... it is fine!
Please any helps?
Thank you very much,
Marco :)
95% chance you find the problem yourself whilst preparing the minimal code.
Here is the CSS minimum CODE:
/* Begin Structure */
body {
margin: 0 0 0 0;
padding: 0;
}
#page {
background-color: white;
margin: /*20px*/ auto;
padding: 0;
width: 760px;
border: 1px solid #959596;
}
#header {
background-color: #73a0c5;
margin: 0px 11px 0px 11px;
padding: 0;
height: 200px;
width: 738px;
}
/*
#headerimg {
margin: 0px;
height: 200px;
width: 100%;
}
*/
.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;
}
#footer {
padding: 0;
/*margin: 0 auto;*/
margin: 1px 11px 1px 11px;
width: 738px;
clear: both;
}
/* End Structure */
/* Begin Sidebar */
#sidebar
{
padding: 20px 0 10px 0;
margin-left: 545px;
width: 190px;
}
#sidebar form {
margin: 0;
}
/* End Sidebar */
Here is the XHTML code (header, index, sidebar and footer
********************************************
HEADER
********************************************
<body>
<div id="page">
<div id="header">
<div id="headerimg">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?>
</div>
</div>
</div>
*************************************************
INDEX
*************************************************
<div id="content" class="narrowcolumn">
<div class="entry">
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
*************************************************
SIDEBAR
***************************************************
<div id="sidebar">
<p align="center">
</p>
</div>
*******************************************
FOOTER
********************************************
<div id="footer">
<p>
<?php bloginfo('name'); ?> is proudly powered by
<a href="http://wordpress.org/">WordPress</a>
<br /><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
</p>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>
Thanks for ur help!
Marco :)
[edited by: marco_ita at 2:07 pm (utc) on Aug. 28, 2008]
Thanks!