View Single Post
Old 07-31-2009, 01:29 PM   #7
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,159
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by Jellby View Post
Is that supposed to work?

That would mean, AFAIK, that whatever inside the <img> will be centered in the <img>, but the <img> has no content, it is content itself, what you need is adding "text-align: center" to the parent element, <div>, <p> or whatever, so that the <img> is centered inside it.

Similarly, adding "text-align: center" to a <table> does not center the table on the page, but it centers the text inside the table cells.
It worked in the past. I'd normally add this code to my html <p><img src=""></p>

and the css override would center the image. Not sure if it's supposed to work or not but it did before.

Still need to test this again.

I had some deadlines for converting this week so I was using 5.13 on my other computer.
Amalthia is offline   Reply With Quote