PDA

View Full Version : CS5 does not have a center command in alignment?


Pego999
08-03-2010, 03:08 AM
This is weird. I wanted to center a logo across the top of the header but there is no center command. There is right and left but no center command. Is this possible? How can I do this please?

DWcourse
08-03-2010, 03:19 AM
Image alignment (right or left) refers to positioning the image to the right or left and having the following content wrap around it. There is no align="center" for images (never has been).

To center an image you place it in another html object such as a paragraph or div and then center the content of that object using align-"center" or css text-align: center.

Pego999
08-03-2010, 07:35 PM
Thanks for the input. I can't see how to place a jpeg logo in a paragraph to center it. Is this possible? Can you explain how to do this please?

DWcourse
08-04-2010, 04:20 AM
Well placing it in a div is probably a cleaner solution but to place an image in a paragraph: place the image and hit a return. The image should be in a paragraph.

<p><img src="img.jpg" /></p>