Forum Moderators: open
If so, time to test your code - maybe put a different url in the iframe and see what behavior you get. You may be running into a browser bug of some kind. Better to know first whose page is creating the unwanted behavior.
Not sure about 'bust out of frames'. If I make it really small it just make a scroll across bar as well as height.
Here is where im at:
Markup approved.
Tried doing this from 3 different angles so far:
using css non floated positioning (head/foot ok-left and right column gone)
using css floating positioning (head/left/footer ok-right column gone)
using table based design (head/left/right ok-footer gone)
So driving me crazy, if you have a bit of extra time i can send you the markup and iframe, it's only a short amount of code, about 10 lines
Cheers so far.
geoffb
Also a good idea to strip the code down to the bare minimum needed to demonstrate the problem. That helps others to focus in on the important parts faster.
html page:
<div id="container">
<div id="header"></div>
<div id="leftcolumn"></div>
<div id="maincolumn">
<iframe src="http:example.com" scrolling=yes /></div>
<div id="rightcolumn"></div>
</div>
css markup:
html, body{
margin:0;
padding:0;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
#container {
width:1000px;
height:900px;
margin-left:5px;
margin-top:5px;
background:#EEEEEE;
border:1px solid #C6C6C6;
}
#header {
position:relative;
width:100%;
height:120px;
background:url(images/top-header.gif) repeat-x;
}
#leftcolumn {
position:relative;
float:left;
width:170px;
height:700px;
background:#8A8A8A;
}
#maincolumn {
position:relative;
float:left;
width:700px;
height:700px;
}
#rightcolumn {
float:left;
width:120px;
height:700px;
background-color:#616161;
}
take a look.
cheers
geoffb
I can't believe after all this time in the web world (3 years..he he) that I didn't think of doing a closing tag for the iframe. I just copied and pasted and didn't realise it needed one, no excuse though, I should have tried that I suppose.
I cant thank you enough.
Have a great day, and a weekend where ever you are.
geoffb (UK)
Validating is the best practice, and it's very unwise ever to skip it or assume it. I validate the first time with the W3C tool, and then after any edit using Homesite - even when I think I couldn't possibly have caused a problem.
I did a validation within Dreamweaver and originally the iframe had an 'unsupported attribute' which was an 'ALLOWTRANSPARENCY' thing, so got rid and strangely it came up after as validated.
Maybe putting it through the W3C would have been best, anyway, here to make mistakes I suppose and it wont be the last for me or any of us. so long as I learn from it.
take care, thanks again.
geoffb
"Markup validated". So I was hesitant to even suggest that closing tag issue
Glad you found the problem. Are you using XHTML syntax by any chance? The problem with validation is that the following:
<iframe src="http:example.com" scrolling=yes /> Is valid XHTML 1.0 Transitional. Unfortunately, it doesn't actually work, as it is invalid HTML. XHTML is treated as HTML in almost all cases by the browser, so you can't use some valid XHTML constructs without encountering problems. This can cause intractable issues unless you are familiar with the HTML specifications!
Its coded in HTML 4.01 Transitional.
I ended up with the following code for specifying the iframe in question and seems fine.
<iframe src="http://example.com" style="border:0" width="680" height="560"></iframe>
Let me know if you can see any immediate problems in older browsers.
Cheers all.
geoffb