Posted by: uplodu 2 Jul, 2009 - 09:13 AM
Hey Guys - I've been trying to get an iFrame within another iFrame.
The code looks like this - Am I doing something wrong?!
CODE
<iframe name="Search" width = "720px" height = "200px" align="center" scrolling="No" frameborder="no" id="Search" with style="background-color: #c51617">
<div class="searchHeadline">
<iframe src="/search.htm" name="Search" width = "675px" height = "100px" align="center" scrolling="No" frameborder="no" id="Search">
</iframe>
</iframe></div>
thanks in advance for help.
Posted by: MageUK 2 Jul, 2009 - 09:40 AM
Well the content of the iFrame tag is only displayed when the browser doesn't support frames.
You would need to create another page with the other iFrame in, and set the src attribute of it to that page.
Posted by: kewlkreator 3 Jul, 2009 - 10:46 AM
Your closing DIV tag is outside of the first iFrame. Try putting the first DIV tag before the iFrame starts. Don't know why that would help but that's just proper nesting technique... I think. I'm a n00b anyway so don't listen to me unless you want to.
Posted by: uplodu 6 Jul, 2009 - 02:24 AM
QUOTE(kewlkreator @ 3 Jul, 2009 - 10:46 AM)

Your closing DIV tag is outside of the first iFrame. Try putting the first DIV tag before the iFrame starts. Don't know why that would help but that's just proper nesting technique... I think. I'm a n00b anyway so don't listen to me unless you want to.
Thanks for the responses, I've figured out what i've been doing wrong.
The second iFrame was supposed to be in the src of the first and not the same page - all sorted now thank you.
Posted by: kewlkreator 10 Jul, 2009 - 05:19 AM
Could you thank me? I need it