Page 1 of 1

Media db positioning

Posted: Wed Apr 06, 2011 3:06 pm
by yellowled
As of now, the media db offers 3 types of positioning: left, center, right (exact code and class names depending on whether and image has a caption). I think we should offer a 4th type: none or static.

There's nothing wrong with left or right, but center isn't actually centered unless the template fixes it. This isn't actually bad since the respective demo image in the media db doesn't show the image as centered -- it is aligned left, but not floated. I think this is a valid display option, but the respective class should not be called .serendipity_image_center. That is potentiall confusing.

Then again, it is perfectly valid to want to be able to actually display images centered, so we should offer that as a fourth option. Hope I didn't confuse anybody too much with this. :)

YL

Re: Media db positioning

Posted: Wed Apr 06, 2011 4:03 pm
by yellowled
yellowled wrote:There's nothing wrong with left or right, but center isn't actually centered unless the template fixes it.
Just for the record: This, of course, refers to images without caption. Images with caption are centered by our default styles, which is even more confusing. :)

YL