How to center content
-
Hi everyone
I’m trying to center the swirly image on this page. I want to have some vertical and horizontal space around it but when I add it in the image settings, the image ends up on the side like that. Without the v- and h-white space it is in the centre. Ironically, in IE6 the image is displayed in the center with the whitespace added…
The code in the WP post is:
<p style="text-align: center;"><img class="aligncenter size-full wp-image-828" style="margin: 40px;" title="swrl" src="https://philipus.com/wp-content/uploads/2010/03/swirl1.jpg" alt="" width="113" height="70" /></p>
I have surrounded the text and image on the right side by a div which looks like this:
.aboutcontainer {position:relative; top:0; left:0; width: 421px; height: 633px;}
I thought there’s something wrong with the div but removing it doesn’t change a thing.
Thanks for any insight
/p
- The topic ‘How to center content’ is closed to new replies.