Skip to content

Instantly share code, notes, and snippets.

@FlaviuSim
Created April 4, 2011 17:30
Show Gist options
  • Save FlaviuSim/902034 to your computer and use it in GitHub Desktop.
Save FlaviuSim/902034 to your computer and use it in GitHub Desktop.
Positioning an iframe's content
<html>
<head>
<style>
#my-div
{
width : 534px;
height : 850px;
overflow : hidden;
position : relative;
}
#my-iframe
{
position : absolute;
left : -370px;
width : 1280px;
height : 1200px;
}
</style>
</head>
<body>
<div id="my-div">
<iframe src="http:/continuinged.uncc.edu/coursebasket/tilesApp/pubExternalHostedPayment.jsp" id="my-iframe" frameborder="0" scrolling="no"></iframe>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment