What Kind Of Tanning Studio Are You Looking For?

So you were walking down the high street the other day and you saw a tanning studio. Maybe you thought about going in? Maybe you pictured yourself with a tan and decided it would be a great look for…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




CSS Box Model

In HTML all the elements are considered to be a box. The CSS Box Model describes the design and layout of the content along with its surroundings.

The CSS Box Model consists of the content, padding, border, and margin.

actual width(112px) = width(100px) + padding(5px) + border(2px)+ margin(5px)

but we can change this behavior by changing the box-sizing property from content-box to border-box. Then the width of the content will be:

actual width(100px) = width + padding + border+ margin

The content-box adds to the width of the element making it wider than the actual width while the border-box adjusts the padding, margin, and border to retain the actual width of the element.

2. Setting padding for the element

For setting padding, we can use padding-top, padding-bottom, padding-left, padding-right, padding-inline, or padding.

3. Setting border for the element

For setting padding, we can use border-top, border-bottom, border-left, border-right, border-width, border-color, border etc.

4. Setting the margin of the element

For setting padding, we can use margin-top, margin-bottom, margin-left, margin-right,margin-inline, or margin.

Add a comment

Related posts:

All About Juneteenth

President Abraham Lincoln issued the Emancipation Proclamation in 1863. The proclamation declared more than three million slaves living in the Confederate states to be free. But it would take two and…

Get More Selfish

We are often appalled by selfish people. They grasp and take rather than offer and serve. That’s not the kind of selfish I’m talking about. I’m describing when we get so determined to give ourselves…

How to deliver excellence in an organisation with stonewalled groups perennially at cold war?

Every hospital and NHS trust wants to perform well in achieving the key performance indicators; however, most of them failed to do so. My recent experience of handling the failures was eye-opening…