this could have various reasons:
-the image alignment css is in an area of style.css that is not applied diue to an error in the syntax in the lines before;
(try and run the http://jigsaw.w3.org/css-validator/ and see if that gives you some clues)
-the styles are overwritten with a different style with higher priority.
(try and use a tool such as firebug to check what style is formatting the image)
without being able to see the problem live in your site, there is not much else to suggest.
link to your site?
Thread Starter
cpa77
(@cpa77)
thanks for the reply. I am a novice at this, so let me be sure I understand you correctly… Either there could be an error in the code preceeding the code that I adjusted, or there is code somewhere else in the css that is overwriting the code I adjusted. I have never used a validator or a tool such as firebug but I will look into both of them, thanks!
something to look for:
some themes have some styles in style.css such as:
.post img { float: left; }
or
#content img { float: right; }
or
.hentry img { float: left; }
or similar, which push all images in the posts to the left.
because styles like these are more specific, they overpower the simple
img.alignleft { ... } etc styles.
This is driving me NUTS! Nothing I do has any effect on my site. The very first paragraph wraps just fine but everything else lines up beneath the image. VERY FRUSTRATING! Please help! An example of my problem can be seen here:
I very much appreciate any help anyone can provide.
Mike