PDA

Click to See Complete Forum and Search --> : Problem with iFrames


Marvin Nash
03-06-2007, 08:00 PM
Hey there,

In a file called index.html I included two iframes: one for the header and one for the menu.
I set the width to 100% and upload the file.
The margin-right is on 0px because I donīt want any margin between the border of the navigator and the iframes.

Result:
http://users.cjb.net/bienalpedo/index.html

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title></title>
</head>

<body>
<IFRAME src="iframetop.html" width="100%" height="138" scrolling="no"
frameborder="0" margin-left="0">
</IFRAME>
<IFRAME src="menu.html" width="100%" height="58" scrolling="no"
frameborder="0"
</IFRAME>
</body>

</html>

I hope that you can help me with this.

See you,

Marvin Nash

Neballer
03-07-2007, 01:30 AM
Are you upset about the right margin, or the not 100%ness of the iframe.
To be honest, I'd stay away from iframes. Their a pain in the ass, and I don't see a need for them in this instance.

Marvin Nash
03-07-2007, 08:05 AM
I actually see the necesity of using them because there are a lot of sections (not only that three), and also, I donīt know what to use ifīs not iFrames.

And the width of the iframe is 100%, but seems to not work as you see...

Neballer
03-07-2007, 03:57 PM
Well...You could use a div or even a table would be better in this situation.

The iframe doesn't display 100% in Firefox on a PC, but it does display 100% in Firefox on a Mac. You might want to try adding some styles to the iframe, not really sure at this moument how to fix this.