CSS for images–help needed
-
I use the Connections theme and the CSS that Lorelle provided here didn’t work for me. This is exactly how I have it in my stylesheet, at the end, after everything else:
img.right
{
padding: 4px; margin: 0 0 2px 7px; display: inline;
}
img.left
{
padding: 4px; margin: 0 7px 2px 0; display: inline;
}Is there something wrong with my punctuation that I just can’t see? Do I have to associate it with a certain class or div? Here is how I use it in this post:
<img src='http://www.coldclimategardening.com/wp-content/
Iris_sibirica_Jaybird_at_Seneca_Hills_June_12_2004
_cropped.jpg' class='left' alt='deep blue Siberian iris' />If you look at the post, you will see that the image is in the center of the page. For the other two images, which align correctly, I used the “old-fashioned” align=’left’ and align=’right’.
Another question: is there a way to specify a caption that will appear underneath the image, similar to what I have here?
And is there a way to have three images in a row, each with its own caption, like this? I used tables for these images when I first posted them in Movable Type, and they are broken since I’ve imported them into WordPress. I would like to redo them with CSS.
Three different questions, all related to displaying images with CSS. Thanks in advance if you can help with any of them.
The topic ‘CSS for images–help needed’ is closed to new replies.