Dorjsuren
Dorjsuren

Reputation: 3

How to make websites in iframe act as in specific width

How do you make something like this which is iframe and (for example) acts as 1920px width in 1024px container. I need to make users check the page in various display widths on the page rather than using developer tools. Forgive me for my bad English and bad writing skill. I really appreciate your effort and time.

Upvotes: 0

Views: 62

Answers (1)

Jason Y
Jason Y

Reputation: 1001

Set your iframe to the actual target width, e.g. say, 1920px, then play with CSS transform:scale:

iframe {
    transform: scale(.3);
    transform-origin: 0 0;
}

Don't forget your vendor prefixes.

Upvotes: 1

Related Questions