Skip to content

Commit 7812908

Browse files
committed
edit readme
1 parent adc85dc commit 7812908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ The script looks for image(s) with the `data-adaptive-background` attribute:
2222

2323
### Using an element with a CSS background image
2424

25-
Instead of using an `<img>` element nested inside of parent element, AB supports grabbing the dominant color of a background image of a standalone element, then applying the corresponding dominant color as the background color of said element. Enable this functionality by adding a data property, `data-ab-css-background` to the element. See the example below:
25+
Instead of using an `<img>` element nested inside of parent element, AB supports grabbing the dominant color of a background image of a standalone element, then applying the corresponding dominant color as the background color of said element.
26+
27+
Enable this functionality by adding a data property, `data-ab-css-background` to the element. See the example below:
2628

2729
```html
2830
<div style='background-image: url(/some-image.jpg)' data-adaptive-background='1' data-ab-css-background='1'></div>

0 commit comments

Comments
 (0)