React-draft-wysiwyg: About uploading pictures to the center of the display

Created on 26 Nov 2018  路  1Comment  路  Source: jpuri/react-draft-wysiwyg

After uploading the picture, can not better display in the center, see the source code is used float style, but in the center is used float:none, can not work better, how to do

Most helpful comment

Also having the same issue. Also I think it would be nice to be able to pass our own css to images so we can add responsiveness & whatnot.

For now I just center & make responsive all my images using

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

>All comments

Also having the same issue. Also I think it would be nice to be able to pass our own css to images so we can add responsiveness & whatnot.

For now I just center & make responsive all my images using

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gyarasu picture gyarasu  路  4Comments

trongbang86 picture trongbang86  路  3Comments

gyarasu picture gyarasu  路  4Comments

rajasekar-ideas2it picture rajasekar-ideas2it  路  4Comments

Huespal picture Huespal  路  3Comments