AD MANAGEMENT

Collapse

BEHOSTED

Collapse

GOOGLE

Collapse

Margin and Padding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Margin and Padding

    Hello friends, In the web design what is the difference between margin and padding ?
    tell me friends...

  • #2
    Margins, padding and borders are all part of what’s known as box model. The Box Model works like this in the middle you have the content area surrounding that you have the padding, surrounding that you have the border and surrounding that you have the margin.
    margin box
    border box
    padding box
    element box
    we don't use all of them.but it can be helpful to remember that model box can be apply on every element of page and that's a powerful thing.

    Comment


    • #3
      Margins in CSS make up the vertical and horizontal areas between elements. If elements have no margins around them, they will bump right up against each other. Some elements have margins by default, so often even if you haven’t added a margin, you may still see one.
      the padding of an element is the horizontal and vertical space that’s set around the content area of the targeted element. So padding is on the inside of a box, not the outside.

      Comment


      • #4
        Margin and padding are generally use to provide space from text to text where some text is written in a box,so for avoiding the bad appearance of written text and to provide clear visibility to written text...

        Comment


        • #5
          Margin is adjust the whole movement of the div. And padding is the movement of the text or image in a div.
          Designbarpro

          Comment


          • #6
            margin is the space from screen and padding is the space between text and the bondary of page.
            Top MBA Colleges in India || MBA Admission 2014

            Comment


            • #7
              Margin is applied to the outside of you element hence effecting how far your element is away from other elements.

              Padding is applied to the inside of your element hence effecting how far your element's content is away from the border.
              Also, using margin will not affect your element's dimensions whereas padding will make your elements dimensions (set height + padding) so for example if you have a 100x100px div with a 5 px padding, your div will actually be 105x105px

              Comment


              • #8
                Padding : Padding can also be understood as "filling". This makes sense as padding does not affect the distance of the element to other elements but only defines the inner distance between the border and the content of the element
                Margin :
                An element has four sides: right, left, top and bottom. The margin is the distance from each side to the neighboring element (or the borders of the document).

                Comment


                • #9
                  1.margin it clears outside the border and is completely transperent does not have bg color
                  2.padding it clears inside the border
                  Ink Cartridges
                  Ink Tanks

                  Comment


                  • #10
                    That both is used for styling the document. Padding used to give space between the text and margin is used to give space between the margin and the content

                    Comment


                    • #12
                      padding is the space between the content and border and margin is the space outside the border.
                      Interior Designer | Company Registration | GST registration | Company Incorporation | Chartered Accountant | Auditing | Payroll

                      Comment

                      Unconfigured Ad Widget

                      Collapse

                      Announcement

                      Collapse
                      1 of 2 < >

                      FreeHostForum Rules and Guidelines

                      Webmaster forum - Web Hosting Forum,Domain Name Forum, Web Design Forum, Travel Forum,World Forum, VPS Forum, Reseller Hosting Forum, Free Hosting Forum

                      Signature

                      Board-wide Policies:

                      Do not post links (ads) in posts or threads in non advertising forums.

                      Forum Rules
                      Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.

                      Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning or will be banned.

                      Members are asked to respect the copyright of other users, sites, media, etc.

                      Spam is not tolerated here in most circumstances. Users posting spam will be banned. The words and links will be censored.

                      The moderating, support and other teams reserve the right to edit or remove any post at any time. The determination of what is construed as indecent, vulgar, spam, etc. as noted in these points is up to Team Members and not users.

                      Any text links or images contain popups will be removed or changed.

                      Signatures
                      Signatures may contain up to four lines

                      Text in signatures is subject to the same conditions as posts with respect decency, warez, emoticons, etc.

                      Font sizes above 3 are not allowed

                      Links are permitted in signatures. Such links may be made to non-Freehostforum material, commercial ventures, etc. Links are included within the text and image limits above. Links to offensive sites may be subject to removal.

                      You are allowed ONLY ONE picture(banner) upto 120 pixels in width and 60 pixels in height with a maximum 30kB filesize.

                      In combination with a banner/picture you can have ONLY ONE LINE text link.


                      Advertising
                      Webmaster related advertising is allowed in Webmaster Marketplace section only. Free of charge.

                      Shopping related (tangible goods) advertising is allowed in Buy Sell Trade section only. Free of charge.

                      No advertising allowed except paid stickies in other sections.

                      Please make sure that your post is relevant.


                      More to come soon....
                      2 of 2 < >

                      Advertise at FreeHostForum

                      We offer competitive rates and a many kinds of advertising opportunities for both small and large scale campaigns.More and more webmasters find advertising at FreeHostForum.com is a useful way to promote their sites and services. That is why we now have many long-term advertisers.

                      At here, we also want to thank you all for your support.

                      For more details:
                      http://www.freehostforum.com/threads...eHostForum-com

                      More ad spots:
                      http://www.freehostforum.com/forums/...-FreeHostForum
                      See more
                      See less
                      Working...
                      X