Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Margin vs Padding

    General Discussion
    2
    3
    323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Nico Minkley
      Nico Minkley last edited by

      Can someone tell me what are the difference?

      1 Reply Last reply Reply Quote 0
      • Linda MacDonald
        Linda MacDonald last edited by Linda MacDonald

        Hey there Nico - one way to explain the difference is: with margin you move objects into place and with padding you squeece objects into place. Let's say you want to move a box from left to right or move the box slightly lower or higher on the page that necessitates that you adjust the margin, e.g. you want your box higher up on the page use minus values (-46 lets say) if you use + values (46) then you move the box down the page. Padding is very similar but rather than a clean move you are squeezing one or all edges of your box to fit into a certain place on your page which also makes your box/object to become smaller or larger - margins don't affect the actual size of an object...make sense? here is a good resource if you are unsure 😉 https://www.w3schools.com/css/css_boxmodel.asp

        1 Reply Last reply Reply Quote 2
        • Nico Minkley
          Nico Minkley last edited by

          @Linda-MacDonald said in Margin vs Padding:

          Hey there Nico - one way to explain the difference is: with margin you move objects into place and with padding you squeece objects into place. Let's say you want to move a box from left to right or move the box slightly lower or higher on the page that necessitates that you adjust the margin, e.g. you want your box higher up on the page use minus values (-46 lets say) if you use + values (46) then you move the box down the page. Padding is very similar but rather than a clean move you are squeezing one or all edges of your box to fit into a certain place on your page which also makes your box/object to become smaller or larger - margins don't affect the actual size of an object...make sense? here is a good resource if you are unsure

          Thank you very much for the detailed explanation. Helped me very well 🙂

          1 Reply Last reply Reply Quote 0
          • First post
            Last post