[quote]What I want to happen is to have my iframe positioned roughly six hundred pixels from the right of the screen, and for it never to move. The code I’m using is working to make it stay 180px from the top, but when I try to change distance from the right there is absolutly no effect.
I tried just making the iframe alot wider so it would move closer to the left, but it just made the right side of the screen extend further to the right!
Viewing the index through the ftp it shows the iframe where I put it(roughly), but when I load the whole page there is absolutely no change.
What am I doing rong?[/quote]
First of all, it is much easier for us to help you if you post a URL for us to look at. When dealing with absolute positioning, it is worth remembering the following rules:
The positioned element is laid out in relation to its containing block.
The containing block is defined as the nearest ancestor with a position other than static. If no such ancestor exists, the containing block becomes the root element of the document.
If the nearest ancestor (whatever element contains the IFRAME) has a style rule of position:relative, the IFRAME will be absolutely positioned within that container.
If the nearest ancestor is the BODY element, I recommend wrapping the entire content in a DIV element, and then set it to position:relative. No offset is required to make it work. Then you should be able to use right: 600px on the IFRAME to put it where you want it. I can’t imagine why you should want to do this, but you’re the designer.
Keystone Websites | si-blog