data-type
<position> — CSS reference
Represents a two-axis location using keywords, lengths and percentages. Position semantics depend on the consumer: background positioning uses available space minus image size, while gradient centers use their gradient box. The same percentage does not always mean the same offset.
Formal Syntax & Structure
css syntaxcss
<position> (keywords and length-percentage offsets; grammar depends on consumer)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:radial-gradient(circle at 25% 75%, red 10px, blue 10px)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>