March 6, 2012
Absolute position elements within iframe?
Question by Uzair Farooq
I want to absolute position an element in iframe relative to the document. I’m using this
.myClass
{
position: absolute;
top: 0;
left: 0;
}
but it do not position the element at top left of document, it’s positioned at top left of the iframe.
How to apsolute position it to the document? jquery/javascript solutions are acceptable
Answer by Starx
Basically, in an iframe
you load a different website or webpage.
The scripts, elements and CSS have to be controlled from within that page.