Caption style and Control CSS class properties are not applied in MediaControl.ascx.cs

   —   
"Caption style“ and “Control CSS class” properties of CMSInlineControls\MediaControl.ascx.cs inline control  are not applied for media type image.
Please open this file: <web site folder>\CMSInlineControls\MediaControl.ascx.cs

Find the CreateImage() method and add this code inside it:

imgParams.BorderWidth = -1;
imgParams.HSpace = -1;
imgParams.VSpace = -1;
imgParams.Class = "<yourclassname>";
imgParams.Style = "<yourstyles>";


This issue is fixed in the 5.0 version.


See also:

Applies to: Kentico CMS 4.1
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.