Skip to content

Commit adc85dc

Browse files
committed
edit readme
1 parent 849e2ba commit adc85dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The script looks for image(s) with the `data-adaptive-background` attribute:
2424

2525
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:
2626

27-
```
27+
```html
2828
<div style='background-image: url(/some-image.jpg)' data-adaptive-background='1' data-ab-css-background='1'></div>
2929
```
3030

0 commit comments

Comments
 (0)