Sizing an Element’s Background - HTML

An element’s background is rendered within the element’s padding space—that is, inside the border of the element. For a visual example. Each paragraph specifies a slightly larger padding value (thick borders have been added to each paragraph for clarity).

Background colors can be used to affect the color of the virtual page elements are rendered on.

Background colors can be used to affect the color of the virtual page elements are rendered on.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics