WordPress plugin intelligence profile

CSS Margin & Padding Utility

Utility for adding css classes for Margin and Padding e.g. .man for 0 margin on all sides, .ptm for 1em padding-top.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.7
Current version2.0.1
WordPress coverageTested up to WordPress 4.7
Minimum stackWP 3.0.1 · PHP —
Directory statusactive
Last directory update26 May 20179y ago
Active installations60Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records CSS Margin & Padding Utility version 2.0.1 as active, updated 9y ago and tested up to WordPress 4.7.

Overview

About this plugin

This utility plugin adds a series of css classes that allow easy addition of set padding and margin to any element.

5em, 1em, 2em, 4em)]

g. 5% or p15 for 15%.

Examples of Basic Classes:

  • man > margin all none = margin: 0px;
  • prl > padding right large = padding-right: 2em;
  • mvp5 > margin vertical 5% = margin: 5% 0;

Additional utility classes – First / Last child, Child / Sub

To add selective classes for adding margin / padding to the first / last child, any child, or any sub-element of the required element, simply add ‘last-‘, ‘first-‘, ‘child-‘, or ‘sub-‘ to the beginning of the basic classes.

Examples of Child Classes

  • last-mhxl > last-child margin horizontal extra large = last-mhxl:last-child { margin: 0 4em; }
  • last-pbn > last-child padding bottom none = last-pbn:last-child { padding-bottom: 0; }
  • first-mtm > first-child margin top medium = first-mtm:first-child { margin-top: 2em; }
  • child-mal > child margin all large = child-mal > * { margin: 4em; }
  • sub-php5 > sub elements padding horizontal 5 percent = sub-php5 * { padding: 0 5%; }

Additional utility classes – Responsive margin / padding

You can also apply the margin / padding required to certain screen widths, ranging from xl (min: 1200px) to xs (max: 480px). To use these responsive classes, add -[screen-size] to the end of the basic classes.

Examples of Responsive Classes

  • mrm-lg > margin right medium, large screen = (max-width: 1199px) and (min-width: 980px) margin-right: 2em;
  • pas-xs > padding all small, xsmall screen = (max-width: 480px) padding: 0.5em;
  • mhp15-md > margin horizontal 15%, medium screen = (max-width: 979px) and (min-width: 768px) margin-left: 15%; margin-right: 15%;

Full Table of Options

[margin / padding]

m = margin

p = padding

[location]

a = all

t = top

r = right

b = bottom

l = left

v = vertical (top + bottom)

h = horizontal (left + right)

[amount]

5em)

0em)

0em)

0em)

0%)

5%)

0%)

5%)

0%)

[first / last] (prefix)

first- = >:first-child

last- = >:last-child

[child / sub] (prefix)

child- = > *

sub- = *

[screen-size] (suffix)

-xs = max-width: 480px

-sm = max-width: 767px and min-width: 481px

-md = max-width: 979px and min-width: 768px

-lg = max-width: 1199px and min-width: 980px

-xl = min-width: 1200px

Additional utility classes – Boxshadow

Using the boxshadow utility classes, you can quickly add a boxshadow to divs and other elements. The format of the utility classes is as follows: shadowout-[direction][blur]-[shadow opacity].

Examples of Boxshadow

  • shadowout-nm-medium > no direction, medium blur, medium opacity = box-shadow: 0 0.15em 0 rgba(0,0,0,0.27);
  • shadowout-brm-dark > bottom-right direction, medium blur, dark opacity = box-shadow:.15em.15em.3em 0 rgba(0,0,0,0.54);

Options for Boxshadow utility

[direction]

15em

n = none

t = top

b = bottom

l = left

r = right

tl = top-left

tr = top-right

bl = bottom-left

br = bottom-right

[blur]

15em)

3em)

6em)

[shadow opacity]

135 opacity)

27 opacity)

54 opacity)

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • boxshadow
  • css
  • margin
  • padding
  • utility
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.7
Minimum requirementsWordPress 3.0.1 · PHP not listed
Update activity26 May 20179y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.