0

I would like to center the image when the user opens the image in a chrome-less window and not center the chrome-less window itself.

The following is what I have:

<img src="DSC01646_tn.jpg" alt="img" onclick="window.open('/share/Company Halloween 2018/DSC01646.jpg', 'newwindow', 'DSC01646.jpg', 'width=auto, height=auto')"/>

I would like to add the following styling css class "mod" to modify the output of the image.

How can I achieve this.

user9808783
  • 129
  • 11
  • @Peter B, Barmer: I am not asking to center the chromeless window but to center the image that is in the window. – user9808783 Nov 01 '18 at 16:07
  • For centering the window, see the duplicate. And for this part: `add the following styling css class "mod" to modify the output of the image` -> you **can't** style an image this way, you need HTML (which contains e.g. an `` tag) to do so. If needed, edit the question so it can be considered for re-opening. – Peter B Nov 01 '18 at 16:08
  • @PeterB: Thank you. Again, not asking to center the window. Regarding the second part of your response, then their is not a way to modify the output on how the image will be displayed correct? – user9808783 Nov 01 '18 at 16:09
  • Not with just an image. There needs to be a DOM document, and with just an image there is no DOM document. – Peter B Nov 01 '18 at 16:11

0 Answers0