S
Samuël van Laere
Good afterneun,
I use some inline styling on a image and its paragraf tag:
<p style="text-align: center; margin: 1em">
<img style="text-align: center; margin: 1em" src="jesouk.jpg" width="500"
height="346" alt="Some alt text">
</p>
Now this centers the image on IE, FF, MZ, NS and OP
Though i'm not sure if both the paragraf and image tags need to be styled.
Anyhow, I figured that it would be better to make a class and call it like
this:
<p class="centered">
<img class="centered" src="http://www.oukje.nl/afbeeldingen/jesouk.jpg"
width="500" height="346" alt="
Foto van geleidehond Oukje in functie met haar vrouwtje Jessica"></p>
This being the class:
..centered { margin: 1em; text-align: center; }
But nope it won't center the image when done like that.
Is there anything missing that causes the image not to center?
Same stylerules inline do work, confusing to say the least.
Sure i've got a URL, but it only shows the inline style in action.
Regards,
Samuël van Laere
the Netherlands
I use some inline styling on a image and its paragraf tag:
<p style="text-align: center; margin: 1em">
<img style="text-align: center; margin: 1em" src="jesouk.jpg" width="500"
height="346" alt="Some alt text">
</p>
Now this centers the image on IE, FF, MZ, NS and OP
Though i'm not sure if both the paragraf and image tags need to be styled.
Anyhow, I figured that it would be better to make a class and call it like
this:
<p class="centered">
<img class="centered" src="http://www.oukje.nl/afbeeldingen/jesouk.jpg"
width="500" height="346" alt="
Foto van geleidehond Oukje in functie met haar vrouwtje Jessica"></p>
This being the class:
..centered { margin: 1em; text-align: center; }
But nope it won't center the image when done like that.
Is there anything missing that causes the image not to center?
Same stylerules inline do work, confusing to say the least.
Sure i've got a URL, but it only shows the inline style in action.
Regards,
Samuël van Laere
the Netherlands