Get your own customer support community
 

Typepad: add class to image assets

I'm a web designer. The folks who write my blog are not. They know that images make their blog posts more interesting, but they don't know how to make them look their best.

Right now, if they add a right-aligned image, Typepad adds a 5 pixel margin to the left of the image via an inline style.

1. That's not much of a margin.
2. Inline styles make for messy code and are difficult to override.

It would be better to add a class to these images, and instead of using an inline style, add a rule to each theme's stylesheet. If it's aligned right, add a class called .right-asset to the image. If it's aligned left, call it .left-asset. That way, I can set the margins universally, the site can look great and they don't have to think about it.
 
sad I’m mustache
Inappropriate?
1 person likes this idea

User_default_medium