IMAGES IN DEX


Dex is a text-only website. It is designed to make text accessible on web and mobile. Nevertheless, images can be added to a dex and have been added in Protocol Dex.

There are 2 ways to add images:

1. Add binary image data directly to an image tag in a body string of a webpage object

< img src='data:image/gif;base64,xxxxxxxxxxxxx...'>

2. Add images to assets/ folder and link using < img > tag in a body string of a webpage object

< img src='assets/img_name.jpg'>

Image width must be set in styles.css to ensure mobile compatiblity. See Styles and Themes for details.








BACK TO DEXWEB DOCS