{"id":13737,"date":"2023-12-04T16:04:39","date_gmt":"2023-12-04T22:04:39","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/docs\/?post_type=ht_kb&#038;p=13737"},"modified":"2025-01-22T12:25:42","modified_gmt":"2025-01-22T18:25:42","slug":"styling-overrides-via-m-painter","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/styling-overrides-via-m-painter","title":{"rendered":"Styling Overrides via m-Painter"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p>m-Painter, via the Styling Overrides panel, allows developers the ability to add styles to individual elements on the page, without having to know any CSS or editing any code. This means that with just a few clicks via m-Painter, a developer could transform text color, add pre-existing CSS classes, adjust borders, and even change text alignment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Accessing the Feature<\/h3>\n\n\n\n<p>In m-Painter, click on the element you which to adjust, then within the right-side element panel, look for &#8220;Styling Overrides&#8221; and click on it. This will expand the accordion, showing you all of the different ways you can adjust the look and feel of the selected element.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style1.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Key Features<\/h3>\n\n\n\n<p>&#8216;Key Features&#8217; are options that will always appear in the &#8216;Styling Overrides&#8217; menu for any element selected in the m-Painter editor . <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Class and Style Attributes<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Depending on what element you have selected, any classes that are already applied to that element will be listed here. You can additional classes, so long as they are separated by a space with any other classes listed. <\/p>\n\n\n\n<p>You can also apply styles directly into the second box if you prefer. For instance if you wanted to set the width to 50, you would type:<\/p>\n\n\n\n<p><code>width:50px;<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Margin<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Margin, also known as the space between this element and the one adjacent to it, can be set here. You can use the dropdown list to say where to apply the margin, where all side is the default option. Setting the margin from 0 &#8211; 5 is not adjusting the amount of pixels of margin, but rather 6 pre-built <a href=\"https:\/\/getbootstrap.com\/docs\/4.0\/utilities\/spacing\/\" target=\"_blank\" rel=\"noreferrer noopener\">bootstrap margin settings<\/a>.<\/p>\n\n\n\n<p>If that option does not work for you, you can provide your own custom margin rule such as:<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>10px 20px 30px 50px;<\/code><\/pre>\n\n\n\n<p><br>This tells the system, per traditional CSS rules to set a top margin of 10px, a right margin of 20px, a bottom margin of 30px and a left margin of 50px.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Padding<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Padding, also known as the space between this element and its outer container, can be set here. You can use the dropdown list to say where to apply the padding, where all side is the default option. Setting the padding from 0 &#8211; 5 is not adjusting the amount of pixels of padding, but rather 6 pre-built <a href=\"https:\/\/getbootstrap.com\/docs\/4.0\/utilities\/spacing\/\">bootstrap padding settings.<\/a><\/p>\n\n\n\n<p>If that option does not work for you, you can provide your own custom padding rule such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>10px 20px 30px 50px;<\/code><\/pre>\n\n\n\n<p><br>This tells the system, per traditional CSS rules to set a top padding of 10px, a right padding of 20px, a bottom padding of 30px and a left padding of 50px.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Display<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style5.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can change the display type of the selected element between inline, inline-block, and block. <\/p>\n\n\n\n<p>Differentiation between these 3 display types is beyond the scope of this document but this CSS topic is covered at length in various websites. For example, the MDN Web Doc provides a great introduction into the &#8216;display&#8217; property <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/display\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Height\/Width<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style6.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Specify the height and width, with proper unit of measure. For instance <code>20px<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">Setting this value too low may cause your setting to be ignored as the content of the page still needs to fit.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Background Color<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style7.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Use the dropdown list to choose one of the <a href=\"https:\/\/getbootstrap.com\/docs\/4.1\/utilities\/colors\/#background-color\" target=\"_blank\" rel=\"noreferrer noopener\">default bootstrap colors<\/a> or choose your own by clicking on the button on the right. This will open a color palette for you to pick the exact color shade of your preference.<\/p>\n\n\n\n<p>Note that any valid color hex code value may be typed directly into the custom &#8216;Color&#8217; input. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Font<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style8.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Use the top dropdown to select the size of the selected element. The dropdown in the bottom left corner lets you specify if you would like your font to be bolded. Finally, click the button in the bottom right corner to open a color palette to pick a specific shade to color your font. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Border<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style9.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Specify the border type, thickness, and color here for your selected element <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Border Radius<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style10.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>This option allows you to round corners for selected elements. This also applies to input boxes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Align Self (float)<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style11.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>This option allows you to either float your element to the left, to the right, or if you click an element again, it returns the element to no float at all. The concept of CSS float goes beyond the scope of this document but the topic is covered at length at any site that covers CSS floating.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Alight Text (text-align)<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style12.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Choose either one of the buttons to align text within its container. You can click any selected button again to unselect it, returning the element to its default text alignment. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Align Children (Flex)<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style13.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can control either the horizontal or vertical alignment of child elements within a flex container. More information about this CSS topic can be found at any CSS Website of your choosing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Shadow<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style14.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click either of the three button to turn on a shadow for the selected element. Click on any selected button to remove shadowing from the selected element. <\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-left\">Special Features<\/h3>\n\n\n\n<p> &#8216;Special Features&#8217; are options that will only appear in the &#8216;Styling Overrides&#8217; menu when a particular element is selected in the m-Painter editor. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Table Layout Options<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/style15.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Prerequisite &#8211; must be selected on a <strong>table <\/strong>element in the m-Painter editor. <\/p>\n\n\n\n<p>Use these options to control the appearance and layout of your data table. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Grid Border &#8211; Select this option to add a visible border to every cell in the table.<\/li>\n\n\n\n<li>Collapse Table &#8211; Select this option to significantly reduce the width and padding of the table. <\/li>\n\n\n\n<li>Wrap Text &#8211; Select this option to indicate whether text should wrap (selected) or not (not selected) within the cells.<\/li>\n\n\n\n<li>White Subtotals (report only) &#8211; Select this option to set the background color of any total lines to white. <\/li>\n\n\n\n<li>Row Striping &#8211; select this option to format the table rows with an alternating background color, to improve readability. <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview m-Painter, via the Styling Overrides panel, allows developers the ability to add styles to individual elements on the page, without having to know any CSS or editing any code. This means that with just a few clicks via m-Painter, a developer could transform text color, add pre-existing CSS classes,&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[255],"ht-kb-tag":[],"class_list":["post-13737","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mpainter"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/comments?post=13737"}],"version-history":[{"count":11,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13737\/revisions"}],"predecessor-version":[{"id":14437,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13737\/revisions\/14437"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=13737"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=13737"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=13737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}