Yiedpozi
Yiedpozi

Reputation: 300

Resize Div Based On Screen Size And Mantain Aspect Ratio

I want made it responsive, fit on all screen size and mantain aspect ratio.

Demo link: http://yiedpozi.biz/yiedtest/

How can I do this? I would prefer Jquery than CSS because I think it's not suitable for my situation, such as using padding/margin top with percentage unit etc.

How can I do this with Javascript/Jquery?

Upvotes: 0

Views: 49

Answers (1)

Munkhtsol Batchuluun
Munkhtsol Batchuluun

Reputation: 23

You can't do it without CSS.

@media screen only and (min-width: 1280px) and (max-width: 1366px) {
/* Here is the CSS code at 1280 - 1366 screen resolutions desktop */
}

Upvotes: 1

Related Questions