|
Posted by Steve Pugh on February 7, 2006, 8:14 am
Please log in for more thread options
Valued Customer wrote:
> I'm really at a loss here. I have the following index.html:
>
> <div align="center">
> <iframe src="left.htm" width="15%" height="100%" frameborder="0"
> name="left" target="contents">
> <iframe src="main.htm" width="85%" height="100%" frameborder="0"
> name="main" scrolling = "no">
For accessibility, giving meaningful names to the iframes would help.
Left and Main are not meaningful.
> </iframe>
> </div>
Presumably you also have some fallback content in the real page?
> In left.htm, is code prett much for navigation. I'm using links like
> this:
>
> <A href="pages/FL000001.htm" target="main">
>
> When using IE, everything works great. The user clicks on something
> on the left and it appears in the correct target.
>
> However when using FireFox there's two issues:
>
> 1. I want a 15/85 proportion of menu to main window on the screen.
> When using FF, it gives an equal amount of space to each frame... in
> spite of the dimensions I specified in the width properties above.
When I use the code above (plus the missing </iframe>) I get one frame
at 15% width and one at 85% width. That's in Firefox 1.0.7 with a
doctype that triggers standards mode. Which version of FF are you using
and which display mode does your doctype trigger?
The two iframes are displayed one above the other, as one would expect
from the code you gave. To get them to display side by side requires
some CSS. (a simple float: left on the first iframe does the trick in
my basic test).
As you haven't provided a URL we can't see your CSS and the rest of
your HTML so we can't even begin to guess what you've done wrong.
> 2. In FF, when a user clicks a link on the left, it doesn't open in
> the target "main", it opens in a new window?!?!...
I can't be bothered to create content pages as well as a sample
frameset. Post the URL so we can see the actual problem in all its
details.
> I did NOT specify target = "_new"; how can this happen?
I think you mean target="_blank", target="_new" is not allowed as per
the HTML spec.
Steve
|