•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3533 | Replies: 20
![]() |
•
•
Join Date: Sep 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
#myframe
{margin-top: -200px;}
The alternative is to code a Container with the frame... so you would have...
<frame>
<div id="framecontentwrap">
</div>
</frame>will try thanks
•
•
Join Date: Sep 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
situation now is like in attachment. I put this:
in tabstyles.css.
it is not skipping the 200? what is wrong?
#framemove {
margin-top: -200px;
}it is not skipping the 200? what is wrong?
Last edited by coat : Sep 19th, 2007 at 10:38 am.
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
AS I dsaid, no idea if it would work.... I don't sue frames...
that said, did you try the other methd of putting in a div within the frame and applying the style to that?
<frame>
<div id="frameddiv">
</div>
</frame>
#frameddiv{
margin-top: -200px;
}
???
The only tother things I can think of is to use JS - which is something else I avoid as much as possible.
that said, did you try the other methd of putting in a div within the frame and applying the style to that?
<frame>
<div id="frameddiv">
</div>
</frame>
#frameddiv{
margin-top: -200px;
}
???
The only tother things I can think of is to use JS - which is something else I avoid as much as possible.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Sep 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 0
tried all sorts of those com binations but it wouldn't work. below is other suggestion with a remark.
page calling the frame is in domain.com/folder1/page.php. the page called is in domain.com/folder2/page.php.
how can it work if like that?
•
•
•
•
this will only work for relative paths on the same serverfunction hideIframeTop(ifrId) { var oIframe = document.getElementById(ifrId); var oDoc = oIframe.contentWindow || oIframe.contentDocument; if (oDoc.document) { oDoc = oDoc.document; } oDoc.body.style.marginTop = '-200px'; return false; } <iframe id="ifr" src="/" onload="hideIframeTop('ifr')" />
how can it work if like that?
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
No idea...
I can see that it is applying the style of margin top -200px... but it seems to be applying it to the contents of the frame (the body of the pagethat loads).
I can see that it is applying the style of margin top -200px... but it seems to be applying it to the contents of the frame (the body of the pagethat loads).
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
Well, I cannot get it to work (then again, I'm naff with scripts
)
) Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
Nope - it will only draw the Body up to the very top, not beyond it....
Frustrating!
Frustrating!
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Rep Power: 4
Solved Threads: 12
I give up -sorry.
I've tried applying Psotion Abs/Rel - that makes the gframe itself move.
I've tried applying margin/marginTop etc. with negatives - nothing happens after the body shifts to the frame edge.
I've tried using Clip-rect/overflow etc... nothing!
I'm out of ideas
I've tried applying Psotion Abs/Rel - that makes the gframe itself move.
I've tried applying margin/marginTop etc. with negatives - nothing happens after the body shifts to the frame edge.
I've tried using Clip-rect/overflow etc... nothing!
I'm out of ideas
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Dynamicallu Resizeing IFRAME based on content (JavaScript / DHTML / AJAX)
- IFRAME tags? (Search Engine Optimization)
- IE7 and IFrames - will be the death of me (HTML and CSS)
- faster loading iframe or better way (JavaScript / DHTML / AJAX)
- Site design problem (HTML and CSS)
- Dynamic iframe height ? (HTML and CSS)
- Image Position (Site Layout and Usability)
- How to make title bar not dissappear when changing pages (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: How do I center extend the nav bar to fit in the body of the page
- Next Thread: How do you center a table?



Linear Mode