.javalab-crop { position: relative; width: 100%; max-width: 900px; height: 540px; /* Adjust to match the visible simulation height */ overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; } .javalab-crop iframe { position: absolute; top: -110px; /* Shift up to hide top header/date */ left: -20px; /* Shift horizontally if needed */ width: 940px; height: 760px; /* Shift/crop bottom text/footer */ border: 0; }