Open in app
Elad Shechter
2.6K Followers
About

Sign in

2.6K Followers
About
Open in app
Elad Shechter

Elad Shechter

Oct 10, 2018·1 min read

You dont use it like this in mt method.

You can put the top and bottom the same, and the start and end separated, like this:

padding:20px 0;

padding-#{$start-direction}:10px;

padding-#{$end-direction}:5px;

Hope is answered your question, Vahid Mohammadi.

Elad Shechter

CSS & HTML Expert

Interesting trick (But not really usable) but how is it gonna support styles like padding: 1px 2px…
1

Vahid Mohammadi

More from Elad Shechter

CSS & HTML Expert

More From Medium

CSS Basics for Typography

Elad Shechter in cssclass.com

How Does CSS Work?

Elad Shechter

NYTimes Peru N-Word, Part One: Introduction

Donald G. McNeil Jr.

NYTimes Peru N-Word, Part Two: What Happened January 28?

Donald G. McNeil Jr.

NYTimes Peru N-Word, Part Three: What Happened in the 2019 Investigation?

Donald G. McNeil Jr.

My Boyfriend Sleeps in the Same Bed as Another Woman Every Night

Matilda Swinney in Real Talk About Sex

NYTimes Peru N-Word, Part Four: What Happened in Peru?

Donald G. McNeil Jr.

The US Air Force Quietly Admits the F-35 Is a Failure

ExtremeTech in ExtremeTech Access

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store