I'm developing a theme for Wordpress.As usual, there are the main page (\[code\]index.php\[/code\] or \[code\]home.php\[/code\]) with post summary and \[code\]single.php\[/code\] file to display a certain post.On the main page, the image alignment inside posts works fine:
I'm using this stylesheet:\[code\] /* Images */img.alignright { display: block; float:right; margin: 0 0 10px 20px;}img.alignleft { display: inline; float:left; margin: 0 20px 10px 0;}img.aligncenter { display: block; margin: 0 auto 1px auto; clear: both;}.alignright { float:right; margin: 0 0 10px 20px;}.alignleft { float:left; margin: 0 20px 10px 0;}.aligncenter { display: block; margin: 0 auto 1px auto; clear: both;}.wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; padding-top: 4px;}.wp-caption img { margin: 0; padding: 0; border: 0 none;}.wp-caption p.wp-caption-text { font-size: 12px; font-style: italic; line-height: 20px; padding: 0 5px; margin: 5px 0;}\[/code\]... but inside \[code\]single.php\[/code\], it shows so:
How can I fix these problems?Best regards, Vi.