How To Position A Css Background Icon X-Pixels From The Right?
Background - Shorthand property
The shorthand belongings for background is merely "background":
The closed to appropriate answer is to purpose next shorthand, until all browsers supports it.
• background-color
• background-image
• background-repeat
• background-attachment
• background-position
It does non affair if i of the belongings values is missing, every mo long every mo the ones that are introduce are inwards this order.
Sumber http://developer-paradize.blogspot.com
The shorthand belongings for background is merely "background":
trunk {background:url("image.png") no-repeat correct top;}To position a CSS background ikon x-pixel from right, you lot tin purpose this shorthand
trunk {background:url("image.png") no-repeat correct 10px top;}Note: The inwards a higher house solution doesn't last for IE8 together with lower.
The closed to appropriate answer is to purpose next shorthand, until all browsers supports it.
trunk {background:url("image.png") no-repeat 97% top;}When using the shorthand belongings the lodge of the belongings values is:
• background-color
• background-image
• background-repeat
• background-attachment
• background-position
It does non affair if i of the belongings values is missing, every mo long every mo the ones that are introduce are inwards this order.
Sumber http://developer-paradize.blogspot.com
Comments
Post a Comment