images and padding in posts
-
Supposing I want to add an image to a post and want it to align right. I then want toadd a border and to stop the text coming right up to it I also want to add padding.
How do I do that?
My code is:
<img src=”https://www.XXXXX/wordpress/wp-images/XXXX.jpg” alt=”XXXXX” align=”right” border=”1px” padding=”5px”/>
Everything works except the padding.
Any ideas where I’m going wrong?
And as someone new to CSS am I right in thinking that I could put a line of code in the style sheet that would give all images a border and padding without me having to specify it every time on a post?
Thanks for any help.
Geo
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘images and padding in posts’ is closed to new replies.