design for home, home interior, interior home design, interior design, home and design, house design, home design software, design a home, free home design, home design ideas, best home design, bedroom design ideas, bedroom ideas, design ideas

Read CSS Padding, Borders and Margin Now

Read CSS Padding, Borders and Margin Now - this is the article you are looking for, we have set up to read in the blog Modern Home Design, this time we will discuss as you need in terms of the design of the house is about Read CSS Padding, Borders and Margin Now, we have collected a lot of data from many other blogs and gather our blog in order to allow you to search for information about the house so that you no need to bother to other blogs because we present here is very complete from home design, home interior, exterior, beautiful garden, a bathroom, a fully equipped kitchen and a comfortable bedroom, well please read the article that we have set for you:

This is about : Read CSS Padding, Borders and Margin Now
And this article : Read CSS Padding, Borders and Margin Now
Article Borders and Margin, Article css, Article CSS basics, Article css borders, Article css margin, Article css padding, Article CSS3, Article learn CSS, Article web, Article web design,

You can also see our article on:


Read CSS Padding, Borders and Margin Now

CSS Padding, Borders and Margin
CSS Padding, Borders and Margin

Margin and Padding:

Now let's look at how you can use this knowledge of the box model to change the presentation of elements by setting the margin and padding properties as shown in the above example.

An element has four sides: right, left, top and bottom. 
The margin is the distance from each side to the neighbouring element or the outer borders of the document. As the first example, we will look at how you define margins for the document itself i.e. for the element <body>. The illustration below shows how we want the margins in our pages to be.

CSS Margins
CSS Margins

The CSS code for the above page would look like this,




Or, like background and font, you could compile the CSS code using just margin. Margin recognises the values in the order top, right, bottom, left.



You can set the margins in the same way on almost every element. For example, we can choose to define margins for all of our text paragraphs marked with <p>:



Padding can also be understood as 'filling'. This makes sense as padding does not directly affect the distance of the element to other elements but rather defines the inner distance between the border and the content of the element.

The usage of padding can be illustrated by looking at a simple example where all headlines have background colours. By defining padding for the headlines, you change how much filling there will be around the text in each headline. Try out the code below yourself and see what it looks like.



Borders

Borders can be used for many things, for example as a decorative element or to underline a separation of two things. CSS gives you endless options when using borders in your pages.

border-color

The width of borders is defined by the property border-width, which can obtain the values thin, medium, and thick, or a numeric value, indicated in pixels. The image below illustrates the system.

CSS Borders
CSS Borders

border-color

The property border-color defines which colour the border has. The values are the same as with the normal color-values for example "#123456", "rgb(123,123,123)" or "yellow".


border-style

The property border-style defines which type of border the element has. There are numerous different types of borders to choose from. Below 8 different types of borders are demonstrated, all the examples are shown with the colour "gold" and the thickness "thick" but can be shown in other colours and thicknesses.

CSS Border Styles
CSS Border Styles

CSS Border Samples

Let's look at some sample CSS codes, try these out yourself to see how they look.




It is also possible to state special properties for the top, bottom, right or left borders. The following example shows you how:



As is the case with many other properties, you can compile many properties into one using border. Let us take a look at an example:



Can be compiled into:



Next Up

In the next lesson we will learn how to float html elements using CSS.




Articles Read CSS Padding, Borders and Margin Now finished we discussed

A few of our information about the Read CSS Padding, Borders and Margin Now, may be beneficial in the form infirasi to create a beautiful home and comfortable for your family and those you love.

No've You've finished reading an article on Read CSS Padding, Borders and Margin Now and many articles about modern home in our blog this, please read it. and url link of this article is https://eyjamasliza.blogspot.com/2016/03/read-css-padding-borders-and-margin-now.html Hopefully discussion articles on could be useful and provide more knowledge for your life and family.

Tag : , , , , , , , , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : Read CSS Padding, Borders and Margin Now

0 komentar:

Post a Comment