Problems with CSS

B

Bubu

Hello, I have a problem with the CSS, the follow code work great in
Firefox, but does not work in IE7.

Please, can anyone help me?
Thanks in advance
Bubu



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>

<body>

<iframe style="position:absolute; height:auto; width:100px; top:0px;
left:0px; bottom:0px; border:none; background-color:#FFFF00"></iframe>
<iframe style="position:absolute; margin-left:100px; width:auto;
top:0px; left:0px; right:0px; bottom:0px; border:none;
background-color:#FF0000"></iframe>
</body>
</html>
 
D

Dylan Parry

Bubu said:
No one has a solution?

You'll find that very few people will attempt to help when you simply
post code. Create a page demonstrating what is happening, and upload it
so that people can see what you mean. I certainly won't bother copying
code form a Usenet post, and very few others will either.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.
 
B

Bubu

Dylan said:
You'll find that very few people will attempt to help when you simply
post code. Create a page demonstrating what is happening, and upload it
so that people can see what you mean. I certainly won't bother copying
code form a Usenet post, and very few others will either.

Ok, I have upload the page:

www.lumierestudios.com/test/test.html

Check it with Firefox and with IE7.

Thanks
Bubu
 
B

Bubu

Dylan said:
Ok, now I can see what you mean. What are you trying to achieve though?
It might be that you're better off using another technique. As you're
using frames, it's more than likely that there is a better way ;)

I can't use Frames, I know that Frames works, but I have other problems
with javascript and other things connected to the project (for example a
single DIV that surround all the frames)
I can use only the iFrames.

Exist a workaround for IE7?
Bubu
 
D

dorayme

"freemont said:
The page has worse problems than that- in Opera it shows *nothing*. A
blank white page.

What a funny thread... worse than what? Is there some main
problem?
 
B

Bergamot

Bubu said:
www.lumierestudios.com/test/test.html

Check it with Firefox and with IE7.

I don't have IE7 available, but I can guess what the problem is.

position: absolute;
top:0px; left:0px; right:0px; bottom:0px;

IE doesn't support this, at least not well. I suggest finding another
method of achieving your desired results if you want IE to render
comparably to other browsers.

BTW, using iframes like that is not a very good idea.
 
W

Wayne Hammond

freemont said:
The page has worse problems than that- in Opera it shows *nothing*. A
blank white page.
It validates and I see a yellow column on the left and the rest of the
page is red. (Firefox 2.0)

--
Wayne
http://www.glenmeadows.us
With or without religion, you would have good people doing good things
and evil people doing evil things. But for good people to do evil
things, that takes religion.
—Steven Weinberg
 
S

Spartanicus

Dylan Parry said:
IE7 supports the above just fine. IE6 and lower won't do a thing with it
though.

Incorrect. IE6 doesn't support the use of top and bottom property
simultaneously, and it needs to be persuaded to get left and right to
work simultaneously, but it that is a far cry from "won't do a thing
with it".
 
B

Bubu

IE doesn't support this, at least not well. I suggest finding another
method of achieving your desired results if you want IE to render
comparably to other browsers.

BTW, using iframes like that is not a very good idea.

1. Please I don't know what to do to solve this.

2. What you suggesta as an alternative to iframe?

Thanks
Bubu
 
D

Dylan Parry

Spartanicus said:
Incorrect. IE6 doesn't support the use of top and bottom property
simultaneously, and it needs to be persuaded to get left and right to
work simultaneously, but it that is a far cry from "won't do a thing
with it".

Perhaps I should have phrased it as I meant it? "IE6 and below won't do
what you expect it to do." Is that better? In reality you'll just end up
with the same content, but sized as if the "bottom" property wasn't
specified at all.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.
 
A

Andy Dingley

Bubu said:
Hello, I have a problem with the CSS, the follow code work great in
Firefox, but does not work in IE7.

The code is ugly and perverse. Think of what you're really trying to
achieve here, then find a better way to do it. Gratuitous use of
absolute and hard-coded positioning is rarely indicative of a good
technical design.

<iframe> has limited uses, very few uses that would be appropriate when
XHTML is also appropriate, and it's certainly not a feature to be
recommended for purely presentation reasons.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top