In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces html how to achieve color filling within the border, the text is very detailed, has a certain reference value, interested friends must read!
CSS? Padding
The CSS Padding property defines the space between the element border and the element content.
Padding
When an element's padding is cleared, the "freed" area is filled with the element's background color.
The fill attribute alone can be used to change the top, bottom, left and right fill. Abbreviated fill attributes can also be used, once changed everything changes.
possible values
value
description
length
Define a fixed fill (pixel, pt, em, etc.)
%
Define a fill using percentage values
Fill-Single Edge Padding Properties
In CSS, it can specify different padding for different sides:
examples
padding-top:25px;
padding-bottom:25px;
padding-right:50px;
padding-left:50px;
Try it?
Fill-Abbreviated attribute
To shorten the code, it can specify all fill attributes in one attribute.
This is called an abbreviated attribute. The abbreviation for all padding attributes is "padding":
examples
padding:25px 50px;
Try it?
The Padding property can have one to four values.
padding:25px 50px 75px 100px;
Top fill is 25px
Right fill is 50px
The bottom fill is 75px
Left fill is 100px
padding:25px 50px 75px;
Top fill is 25px
Left and right fill is 50px
The bottom fill is 75px
padding:25px 50px;
Top and bottom fill is 25px
Left and right fill is 50px
padding:25px;
All fillings are 25px
attribute
description
padding
Set all fill properties in a declaration using abbreviation properties
padding-bottom
Set the underfill of an element
padding-left
Set left fill of element
padding-right
Set the right fill of the element
padding-top
Set the top fill of an element
The above is "html how to achieve the border fill color" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.