Programmers know a trick or two in making websites look professional and have a stream-lined appearance. When they go out making a webpage, they will do everything possible to make your website stand out. Of course this all comes down to a fee, so the more jazzed up you want your site to look, the higher these programmers will charge you. Now, if you have some knowledge about programming, all it takes is a few lessons online and you can probably design a simple site already just by using CSS margins and other jargons that are needed to make a site.
What Are CSS Margins?
Basically, these margins define how much space you want around something such as your text, image, or even a block. The CSS margin has values that you input which will tell the HTML editor what you want the site to look like. For example, the margins can be defined by length, percentage, and even auto. The basic or default margin in programming code is set at 10px. The following are the defaults if you want to set them at specified areas of the webpage:
Margin-top:10px Margin-right:20px Margin-left:150px Margin-bottom:25px
When you do your programming for HTML, you can do a shorthand version of this and just specify, (margin: 10px). As pictured above, the left margin is defaulted at 15px, the top at 10px, the right at 20px, and the bottom at 25px.
How Can You Personalize Your Site Using CSS Margins?
The good thing when you use margins on your site is that it will definitely look very professionally made as you will not have overflowing elements come into another element such as a body of text or images. Remember that margins are for the whole page, and not just a specific element. Most margins are set to minimum because readers might have a hard time reading the content on your webpage if the margins are set to big and all you see is just a small portion of the page. Tinker around with the values and properties until you come with one look that you are happy and satisfied with.
What Else Is Good With CSS Margins?
These margins will give your webpage a very liquid appearance. You will have to make sure that the values and percentages are set correctly because the margins are the ones that are outside of the border and usually they are set at minimum amounts of pixels.