Page 1 of 1

Custom CSS being overridden

Posted: Tue Jun 17, 2014 6:30 pm
by Milton Davis

I created an image and attached a custom CSS class to it called imageCenter. My CSS looks like this:

.imageCenter {
margin-left: auto;
margin-right: auto;
width: 70%;
vertical-align: middle;
}

If this is a custom CSS, why is it lower priority than the default class for an image.

How do I fix this?

Image


Custom CSS being overridden

Posted: Tue Jun 17, 2014 7:34 pm
by Kateryna Grynko

Hi Milton,

This is a known issue. As a workaround you can use:preimg.imageCenter/preinstead of:pre.imageCenter/pre


Custom CSS being overridden

Posted: Tue Jun 17, 2014 8:44 pm
by Milton Davis

Worked! Thanks.