Welcome to Forum - Functional Product & Methodology

Showing results for 
Search instead for 
Did you mean: 

Web generated Diagrams

Senior Member

Web generated Diagrams

I have a large diagram which I would like to display on my MEGA generated Web Portal.  Does anyone know how I can fit the diagram to the page size of the browser.


I have attached a screen print of how it looks.

MEGA Partner

Re: Web generated Diagrams

You could try and use CSS:


img {
  height: auto;
  max-width: 550px;


The above specifies that <img> elements should be scaled down to 550 pixels, if they are wider than that. We then need to adjust the height so the image is scaled proportionately. By setting height to auto, we allow CSS to calculate the proportions for us.

Tags (1)