Hello, I would like to ask you for a help with my css.
I have recently installed my new website http://www.shadowblog.cz/ using WordPress 2.0.1 CMS and changed original template for a "dusk" template by Beccary (http://beccary.com/goodies/ ) which I have subsequently modified for my purposes. But I have one problem still left. Under IE: the margin tag defining space between floating images and text does not seem to work or at least the page is not loaded properly under IE - it doesn't show a defined margin around images. There's no gap between images and text and it looks very unaesthetic. Under FF or Opera everything works fine.
screenshot from IE: http://www.shadowblog.cz/1/IEshot.jpg
I use standard code in my style.css:
<!--code-->
/* Begin Images */
p img {
padding: 0;
max-width: 100%;
}
.alignright {
float: right;
}
.alignleft {
float: left;
}
img.alignright, img[align="right"] {
padding: 0px;
margin: 3px 3px 1px 10px;
display: inline;
}
img.alignleft, img[align="left"] {
padding: 0px;
margin: 3px 10px 1px 3px;
display: inline;
}
img.centered {
padding: 0px;
margin-left: auto;
margin-right: auto;
display: block;
}
/* End Images */
----
Thanks for any suggestions.
+ I have now remembered another thing. I have a problem with horizontal centering of images too. I have to use a following code to center images:
<div style="text-align: center">
<img alt="xxxxxxxxx.jpg" id="image40" title="xxxxxxxx.jpg" src="http://www.shadowblog.cz/.............jpg" />
</div>
Don't you have any suggestions for a more subtle solution? With img.centered style? Adding class "centered" to img tag doesn't center image for me.
Again. Thanks in advance for your help and ideas.