Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,356 members, 7,819,266 topics. Date: Monday, 06 May 2024 at 01:31 PM

How To Use Margins In CSS During Web Design - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Use Margins In CSS During Web Design (225 Views)

Please Tell Me How This Is Done In Css / How To Use Padding Elements In CSS While Building A Webpage / Get VPS For ₦550 With Reseller Plan & Free Domain | Increase Your Margins Today (2) (3) (4)

(1) (Reply)

How To Use Margins In CSS During Web Design by ComputerCollege(m): 10:08pm On Jun 22, 2020
CSS margins enable you to add empty space around the outside of the rectangular area for an element on a web page. It is important to remember that the margin property works with space outside of the element. Following are the style properties for setting margins:

1. margin-top — Sets the top margin.
2. margin-right — Sets the right margin.
3. margin-bottom — Sets the bottom margin.
4. margin-left — Sets the left margin.
5. margin — Sets the top, right, bottom, and left margins as a single property.

You can specify margins using any of the individual margin properties or using the single margin property. Margins can be specified as auto, meaning the browser itself sets the margin in specific lengths (pixels, points,ems) or in percentages. If you decide to set a margin as a percentage, keep in mind that the percentage is calculated based on the size of the entire page, not the size of the element. So, if you set the margin-left property to 25%, the left margin of the element will end up being 25% of the width of the entire page.

Read Full Post Here: https://giversland.com/?p=1426

(1) (Reply)

How To Create An Android App For A Blog For Free Without Any Coding Skill / Workes Needed / Verified UK Goggle Adsense With And Without Domain Available

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.