Update README.md

This commit is contained in:
Alexander Bell 2018-05-30 22:02:19 -06:00 committed by GitHub
parent 047ab0f95a
commit 895daa8006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,15 @@ Add following line at the beginning of your document:
Use the ReactFancyImage component:
`<Image img={require(imgUrl)} headlineA="" headlineB="" />`
> The image is displayed 'absolute'. To embed it into your website it is recommended to use a parent `<div style={{position: "relative"}}>`.
```jsx
<ReactFancyImage img={require(imgUrl)} headlineA="" headlineB="" />
//The image is displayed 'absolute'.
//To embed it into your website it is recommended to use a parent div
//to be able to move and style the image. Like so:
<div style={{position: 'relative'}}>
<ReactFancyImage img={require(imgUrl)} headlineA="" headlineB="" />
</div>
```
# Contact