iframes question

S

Steve Easton

Is there a way to eliminate the
automatic border that appears
around an iframe??

tyia
steve
 
S

Steve Easton

LOL.
I had tried border= everything I could think of.
never thought of frameBorder=.


Thanks Chris.
 
C

chris leeds

besides being in that code, I did those pages with FrontPage so I'm sure
it's there off the right click menu or frame properties dialog box or I'd
have not figured it out ;-)
HTH
btw that's the Danish made single page cms I've been mentioning off and on.
there is another one here:
http://leighton-smith.com
it's from www.cmsimple.dk and it's very simple and very cool (imho).
 
S

Steve Easton

I still have a white border around the edge.
It just doesn't have the visible border "inset"
edge.
:-(
 
C

chris leeds

there are two specs on that frame description, maybe you don't have the
second one. maybe you have to make the frame border the same color as the
page that's in it? it worked on mine but both pages are primarily white.
 
M

mike

This is the way I the iframe is on my site

this is the xhtml

<iframe src="home.htm" name="I1" frameborder="0"

This is the CSS from my sylesheet

iframe
display: block
height:413px
width:630px
border-width:2px
border-color:#800000
border-style: solid


Works fine in opera/mozilla/firebird/etc. But in IE I get white edges on the frameborder at the right and the bottom side of the Iframe. When I remove my doctype (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) everything looks fine. Anything I can do to fix this anoying problem. I did everything according to W3C, so I think this might very well be a bug in IE. Why can't IE just render standards compliant code......... :sigh

This is my site by the way: http://www.obnoxious.nl (it is in dutch

Mike
 
T

Thomas A. Rowe

Note: The IFrame tag was originally a IE only tag before being adopted by
the W3C.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


mike said:
This is the way I the iframe is on my site:

this is the xhtml:

<iframe src="home.htm" name="I1" frameborder="0">

This is the CSS from my sylesheet:

iframe {
display: block;
height:413px;
width:630px;
border-width:2px;
border-color:#800000;
border-style: solid;
}

Works fine in opera/mozilla/firebird/etc. But in IE I get white edges on
the frameborder at the right and the bottom side of the Iframe. When I
remove my doctype (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
looks fine. Anything I can do to fix this anoying problem. I did everything
according to W3C, so I think this might very well be a bug in IE. Why can't
IE just render standards compliant code......... :sigh:
 
M

mike

I know this. But why doesn't IE render the code correctly? Especially when they introduced the Iframe-tag themselves....
 
S

Steve Easton

Forgive me if I'm missing something,
but I don't see an Iframe, I see a frameset
and frames.!!!


--
95isalive
This site is best viewed..................
...............................with a computer
mike said:
This is the way I the iframe is on my site:

this is the xhtml:

<iframe src="home.htm" name="I1" frameborder="0">

This is the CSS from my sylesheet:

iframe {
display: block;
height:413px;
width:630px;
border-width:2px;
border-color:#800000;
border-style: solid;
}

Works fine in opera/mozilla/firebird/etc. But in IE I get white edges on
the frameborder at the right and the bottom side of the Iframe. When I
remove my doctype (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
looks fine. Anything I can do to fix this anoying problem. I did everything
according to W3C, so I think this might very well be a bug in IE. Why can't
IE just render standards compliant code......... :sigh:
 
T

Thomas A. Rowe

Since MS created the IFrame tag, how could IE then be rendering the code
incorrectly? Have you considered that the W3C guidelines and the
implementation in other browsers maybe incorrect?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


mike said:
I know this. But why doesn't IE render the code correctly? Especially when
they introduced the Iframe-tag themselves....
 
T

Thomas A. Rowe

Personally to get the effect that you want, I would just insert the IFrame
within a table and set cell background color, thereby eliminating the use of
CSS, so that it would appear correctly in all browser supporting the IFrame.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
M

mike

I heard from another user (on the opera forum) that Iframe renders correctly in IE5.5, so maybe this is a bug in IE 6?

Concerning W3C: It would be nice if MS would follow standards for once. It would make webdesign a LOT easier.

Concerning the Iframe: It is there the red square is the border of the Iframe.

Regards,

Mike
 
T

Thomas A. Rowe

There are no standards, the W3C issue recommendations only.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


mike said:
I heard from another user (on the opera forum) that Iframe renders
correctly in IE5.5, so maybe this is a bug in IE 6?
Concerning W3C: It would be nice if MS would follow standards for once. It
would make webdesign a LOT easier.
 
M

mike

Well, that's a good idea, but it still is a workaround

Can you confirm that this is a rendering bug in IE? If yes, then I will report it te MS

Thanx for the help

Ps. I know the W3C issues recommendations, but these recommendations are implemented in so many browsers, and are seen as standards these days. And you have to agree it would be nice if everyone would follow the same recommendations/standards.
 
T

Thomas A. Rowe

I will agree that it is a issue with IE and CSS in relationship to the
IFrame tag. But the basic IFrame tag display and works correctly in IE6.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


mike said:
Well, that's a good idea, but it still is a workaround.

Can you confirm that this is a rendering bug in IE? If yes, then I will report it te MS.

Thanx for the help.

Ps. I know the W3C issues recommendations, but these recommendations are
implemented in so many browsers, and are seen as standards these days. And
you have to agree it would be nice if everyone would follow the same
recommendations/standards.
 
M

Mike

I did everything according to the article. I am absolutely sure my code is correct.

I will remove the doctype declaration for now. If anyone has another solution?? They are most welcome. (the table solution didn't work out very well, but htanx for the tip anyway :))
 
T

Thomas A. Rowe

What happen with the table solution?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Mike said:
I did everything according to the article. I am absolutely sure my code is correct.

I will remove the doctype declaration for now. If anyone has another
solution?? They are most welcome. (the table solution didn't work out very
well, but htanx for the tip anyway :))
 
Top