Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4614888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:45:45+00:00 2026-05-22T01:45:45+00:00

Which one better? Using shorthand like: padding:5px 10px 15px 20px; Or using longhand like:

  • 0

Which one better? Using shorthand like:

padding:5px 10px 15px 20px;

Or using longhand like:

padding-top:5px;
padding-right:10px;
padding-bottom:15px;
padding-left:20px;

Related to:

  • performance (browser performance, filesize)
  • documentation (easy maintenance by developer)
  • and others
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:45:47+00:00Added an answer on May 22, 2026 at 1:45 am
    • You shouldn’t worry about CSS performance unless you have profiled the page load and it has became the bottleneck (I doubt, it is almost always multiple HTTP requests and images).
    • Any competent developer can remember clockwise from top for the order of values.
    • Shorthand means less bytes to be sent, which a CSS minifier doesn’t optimise itself (I don’t think).
    • I’d only use the long method if setting one value, e.g. padding-left: 3px.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which one is better from performance view user control or custom control? Right now
Which one is better using condition in where statement or in join statement? Can
Which one is better way of using MySQL in Tomcat : A) assign a
In java,which one is better for performance: Using .properties file or .conf file to
which one is better to unzip a file in C# using window shell or
Which one is better - Using mysql aggregate function COUNT to return number of
Which one is better to fetch data from mysql database using PHP and why?
Which one is better? Using fragment identifiers... http://www.alinkthatdoesnotwork.com/#!/dir1/dir2/file.html ...or the new Javascript History API?
which one is better from following options Is one using statement is enough? Option
Which one is better and faster? why? using only one file for styling: css/style.css

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.