Ask coding questions

← Back to all posts
Embed Repl.it
AaronZhang314 (6)

Is it possible to display the code and output side by side as opposed to one above the other?

Commentshotnewtop
AaronZhang314 (6)

Also, what is the scrolling = "no" for in the iframe tag?

AaronZhang314 (6)

I thought that it was so that you couldn't scroll in the iframe but I still can

fmaida (0)

I agree. When I embed a trinket.io widget, side-by-side is really a better layout IMHO.

AaronZhang314 (6)

Is there a way to prevent the code from being edited(saved in the actual file), i just found out that you could

swaffield (0)

@AaronZhang314 I, too, would like a solution to this.

AaronZhang314 (6)

@swaffield I don't know if you knew this but it forks a new repl if you are not the owner (for example if you try editing on incognito)

timmy_i_chen (1001)

Mind if I ask why you want to put them side by side?

AaronZhang314 (6)

@timmy_i_chen Oh it is just a formatting preference :p

timmy_i_chen (1001)

For embeds, this is currently not possible, sorry :(

AaronZhang314 (6)

Can anyone give me a hint on how to edit the iframe using css to accomplish this (if that's how you're supposed to do it) cuz I'm pretty new to this stuff