Hey all,
I'm having a little trouble picturing how this can be achieved without messing around with my blog styling a lot so thought I'd ask you guys before doing some trial and error approach.
Basically I have this post with a small image that I would like centered:
The HTML code for this is:
<p>
<a href="http://www.gauntface.co.uk/blog/wp-content/uploads/2010/04/boot.png">
<img class="aligncenter size-full wp-image-485" title="Ubuntu New Brand Logo" src="http://www.gauntface.co.uk/blog/wp-content/uploads/2010/04/boot.png" alt="" width="512" height="300">
</a>
</p>
The only way I can seem to get the image centred is by setting the paragraph tag to text-align:center.
So the all important question is, can anyone think of a way of saying any image in a paragraph tag (whether surrounded with a link or not) should be centred? Which kind of feels like I want to say a rule of: if this p tag has a link and an image or just an image apply this rule to it (i.e. reverse of how CSS rules work)
It's not important but I just get a little frustrated when I can't get things like this doing what I please.
I'm having a little trouble picturing how this can be achieved without messing around with my blog styling a lot so thought I'd ask you guys before doing some trial and error approach.
Basically I have this post with a small image that I would like centered:

The HTML code for this is:
<p>
<a href="http://www.gauntface.co.uk/blog/wp-content/uploads/2010/04/boot.png">
<img class="aligncenter size-full wp-image-485" title="Ubuntu New Brand Logo" src="http://www.gauntface.co.uk/blog/wp-content/uploads/2010/04/boot.png" alt="" width="512" height="300">
</a>
</p>
The only way I can seem to get the image centred is by setting the paragraph tag to text-align:center.
So the all important question is, can anyone think of a way of saying any image in a paragraph tag (whether surrounded with a link or not) should be centred? Which kind of feels like I want to say a rule of: if this p tag has a link and an image or just an image apply this rule to it (i.e. reverse of how CSS rules work)
It's not important but I just get a little frustrated when I can't get things like this doing what I please.