Q:What is better max-height or put normal height to load quicker in css?

AeroxogShorne

New Member
I am putting some photos on my website and I do not know which syntax will load them quicker. My photos are usually 4300x3000 or 3000x4300 ( which is from 7-10 mb/photo ). I am using:\[code\]#image { max-height:500px; max-width:750px;}\[/code\]When I viewed my website on a low-end PC, it took a lot of time to load. I do not want to use fixed \[code\]height\[/code\] and \[code\]width\[/code\] because I could have photos as big as 2500x2500 and that would cause a mess. What should I do to reduce the load time? Is there something like an \[code\]autoresize\[/code\] that will keep the \[code\]height\[/code\] to \[code\]width\[/code\] ratio?
 
Back
Top