Design and CSS styles
Version 7.x > Design and CSS styles > Remove inline styles from editable text View modes: 
User avatar
Member
Member
Jon White - 8/16/2013 11:22:22 AM
   
Remove inline styles from editable text
Hi there,

Okay it's end of day Friday so my brain is shutting down...

Inline styling seems to be applied to my paragraphs and headers?:

<p style="margin: 0px; padding: 0px; border: 0px none; color: rgb(102, 102, 102); font-family: sans-serif, arial, helvectica;">

These are overriding my stylesheet, I do not want to use '!important' in CSS.

Am i able to remove all inline styling from text and headers so i can just use my global styles?

I may not be doing something right, but i can't see how to stop it automatically adding the inline styles.

Also, in the code above you may notice (or not) a small typo for helvetica: this is like this in the system. Just letting you know.

User avatar
Kentico Support
Kentico Support
kentico_filipl - 8/17/2013 9:31:43 AM
   
RE:Remove inline styles from editable text
Hi Jon,

Which elements are those CSS styles applied for? When I reviewed the default styles for Editable text web part, I could not see any of them. Could you provide any screenshots where I could see that?

Thank you in advance.

Best regards,
Filip Ligac

User avatar
Member
Member
Jon White - 8/19/2013 3:15:43 AM
   
RE:Remove inline styles from editable text
Argh, fresh head on a Monday morning...

Stupid me, I think it is due to copying and pasting text from another website, it added the inline styles from the stylesheet.

So ignore this post. Sorry