🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
CSS Margin & Padding Utility icon
Möglicherweise aufgegeben Tested up to 4.7.40 #1 in boxshadow

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.

Aktive Installationen60+10+ Stufe
Downloads · 30d124▲ +74.6% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score25/100In Gefahr
Downloads aller Zeiten4.4KSeit November 2016
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.0.1PHP ANY
Downloads · 7d44▲ +51.7% week over week
Unser Urteil

Betrachten Sie eine Alternative

CSS Margin & Padding Utility shows warning signs in 2026 — compare the alternatives below before installing. It runs on 60+ sites and was last updated 10 years ago, and scores 25/100 on our health check.

  • Small user base (60+ active installs)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 9 Jahren
  • Only tested up to WordPress 4.7 (latest is 7.1)

Tägliche Downloads

369Sep 5Oct 19Dec 3
Gestern3
Täglicher Durchschnitt (1 Jahr)2
Spitzentag13Dec 2, 2026
Letzte 12 Monate612

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where CSS Margin & Padding Utility stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
boxshadow #8 9 Best boxshadow plugins →
css >100 10,000 Best css plugins →
margin >100 2,267 Best margin plugins →
padding >100 2,307 Best padding plugins →
utility >100 1,098 Best utility plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 2.0100.0%

About CSS Margin & Padding Utility

From the official readme · v2.0.1

Beschreibung

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

For basic use, the classes follow the format of [margin / padding][location letter: all, top, right, bottom, left, vertical, horizontal][amount: none, small, medium, large, extra large (0.5em, 1em, 2em, 4em)]

Also in the basic classes are percentages, taking the place of the last letter in the format [p][percentage] e.g. p7-5 for 7.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]
s = small (0.5em)
m = medium (1.0em)
l = large (2.0em)
xl = extra large (4.0em)
p5 = 5 percent (5.0%)
p7-5 = 7.5 percent (7.5%)
p10 = 10 percent (10.0%)
p12-5 = 12.5 percent (12.5%)
p15 = 15 percent (15.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]
all directions shift the shadow by .15em
n = none
t = top
b = bottom
l = left
r = right
tl = top-left
tr = top-right
bl = bottom-left
br = bottom-right

[blur]
s = small (.15em)
m = medium (.3em)
l = large (.6em)

[shadow opacity]
-light = light (0.135 opacity)
-medium = medium (0.27 opacity)
-dark = dark (0.54 opacity)

Installation

Installation:

  1. Laden Sie die Plugin-Dateien in das /wp-content/plugins/-Verzeichnis hoch oder installieren Sie das Plugin über den WordPress-Plugin-Bildschirm direkt.
  2. Aktivieren Sie das Plugin über den Bildschirm „Plugins“ in WordPress.
  3. Use the classes (examples given above) to easily and quickly add padding and margin to any element.

Änderungsprotokoll

Addition of child- and sub- selectors for > * and * respectively first- and last- are only applied to direct children ( > :first-child or > :last-child )

2.0.1

  • Fixed: Bug with responsive utility; xs and xl not working due to syntax error.

2.0.0

  • Extensive use of scss to clean up css files and compile down to one css include for all margin and padding utils

  • Addition of child- and sub- selectors for margin and padding util

  • Bugfix: changing implementation of first- and last- to only affect immediate descendants

1.2.2

  • Updating readme with further instructions and guides

  • Fixing override issue with responsive margin and padding

1.2.1

  • Cleaning up of code and files

1.2

  • Use of SCSS to generate the necessary CSS files

  • Addition of flexbox util

1.1

  • Addition of :first-child and :last-child selectors

  • Addition of responsive classes

  • Extra boxshadow util

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Fragen und Antworten

CSS Margin & Padding Utility: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is CSS Margin & Padding Utility free?

Yes. CSS Margin & Padding Utility is free to download and use from the official WordPress.org plugin directory.

Is CSS Margin & Padding Utility safe to use in 2026?

CSS Margin & Padding Utility shows warning signs in 2026 — compare the alternatives below before installing. It runs on 60+ sites and was last updated 10 years ago, and scores 25/100 on our health check.

How many websites use CSS Margin & Padding Utility?

CSS Margin & Padding Utility is active on 60+ WordPress websites and has been downloaded 4,362 times since it launched in November 2016. It was downloaded 124 times in the last 30 days.

Does CSS Margin & Padding Utility work with WordPress 7.1?

CSS Margin & Padding Utility is officially tested up to WordPress 4.7.40, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was CSS Margin & Padding Utility last updated?

The latest version, 2.0.1, was released on May 26, 2017 (10 years ago).

Who makes CSS Margin & Padding Utility?

CSS Margin & Padding Utility is developed and maintained by Jakobodb.

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen