ICSS2Properties.BackgroundPosition
ICSS2Properties.BackgroundPosition property
If a background image has been specified, this property specifies its initial position. Values have the following meanings:
With a value pair of ‘0% 0%’, the upper left corner of the image is aligned with the upper left corner of the box’s padding edge. A value pair of ‘100% 100%’ places the lower right corner of the image in the lower right corner of padding area. With a value pair of ‘14% 84%’, the point 14% across and 84% down the image is to be placed at the point 14% across and 84% down the padding area.With a value pair of ‘2cm 2cm’, the upper left corner of the image is placed 2cm to the right and 2cm below the upper left corner of the padding area.top left and left top - Same as ‘0% 0%’.top, top center, and center top - Same as ‘50% 0%’.right top and top right - Same as ‘100% 0%’.left, left center, and center left - Same as ‘0% 50%’.center and center center - Same as ‘50% 50%’.right, right center, and center right - Same as ‘100% 50%’.bottom left and left bottom - Same as ‘0% 100%’.bottom, bottom center, and center bottom - Same as ‘50% 100%’.bottom right and right bottom - Same as ‘100% 100%’.
public String BackgroundPosition { get; set; }
Return Value
background-position property
Property Value
The background position value from the list as it defined above.
See Also
- interface ICSS2Properties
- package com.aspose.html.Dom.Css
- package Aspose.HTML