Update README.md
This commit is contained in:
parent
047ab0f95a
commit
895daa8006
12
README.md
12
README.md
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user