1.

CSS Background

Answer»
COMMANDSDESCRIPTIONSYNTAX
Background ImageSets the background image in a div. An element's background-image attribute specifies one or more background images. background-image: url()
Background RepeatSets whether the background is to be repeated or not, in other words, it determines whether or not the background picture will be repeated. background-repeat: repeat-x | repeat-y | repeat | space | round | no-repeat
Background AttachmentSets the background image scroll or fixed. CSS's background-attachment attribute controls how the background moves in relation to the viewport. background-attachment: scroll | fixed | local | initial | inherit
Background Color Set the background colour of the div or container. background-color: #2AA9E0
Background PositionSets the position of the background. background-position: top | right | bottom | left | center
Background OpacityThe opacity property specifies the opacity/transparency of an element. It can take a value from 0.0 - 1.0. The lower value, the more transparent it is. div {background-color: green; and opacity: 0.3};

Different properties and how it works:




Discussion

No Comment Found