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 6123279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:59:49+00:00 2026-05-23T15:59:49+00:00

I have been tasked with modifying the layout of a site so that it

  • 0

I have been tasked with modifying the layout of a site so that it meets the criteria of the client’s corporate style guide.

The guide is requiring that I ensure certain elements are spaced [X]px from other elements, and that elements of this type are lined up with elements of that type.

So as I’m doing this, I can see that the existing spacings are defined in some cases using padding, and in other cases using margin.

Is there a preferred way of doing this? When should I use one in favour of the other?

  • 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-23T15:59:50+00:00Added an answer on May 23, 2026 at 3:59 pm

    That really depends somehow. Margin and Padding are two different things. However in some cases you will not notice a difference.

    A figure which shows you the difference:

    enter image description here

    Source: http://www.edition-w3c.de/TR/1998/REC-CSS2-19980512/bilder/boxdim.gif

    So for example: If you want to define the space between the border and your content you will only achieve this with padding(while having a visible border).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been tasked with changing a bit of css for a site that
I have been tasked with going through a number of ColdFusion sites that have
I have been tasked with coming up with a compatibility guide for SharePoint 2007
I have been tasked with developing a solution that tracks changes to a database.
I have been tasked with creating a program that will generate an amortization schedule.
I have been tasked with developing a Firefox add-on that is capable of registering
I have been tasked with migrating an existing mature ASP.NET 2.0 web site to
I have been tasked with improving the current mess that is our JavaScript strategy;
I have been tasked to write a module for importing data into a client's
I have been tasked with refactoring a project that currently uses an EAV model

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.