/    Sign up×
Community /Pin to ProfileBookmark

Hi!

I have a doubt. I am making a little webpage that use a table with 1 row and two column. In the Right Column I insert a layer (Relative position, width:100%, height: 100%, visible, transparent and so on). Piece of code:

[SOURCE]
<div id=”Layer1″ style=”position::relative; left:0px; top:0px; width:100%; height:100%; z-index:1; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 0px none #000000; visibility: visible;”>

——– Here What I want to insert ——————-
</div>
[/SOURCE]

I target is inset a little code in PHP that include another HTML page (no frames). I make a test and works with IE6. I am not sure if it’s supported by all browsers. It means that inside <DIV></DIV> will be tags like <HTML><HEAD><BODY> and so on…

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@drhowarddrfineAug 26.2005 — The term is div, not layer. I think Macromedia uses the term layer as a legacy from some of their older software. There is no such thing as 'layer' in html or css except from Netscape Navigators deprecated html tag.

Also, do not test in IE. IE does not meet standards from 1999 while Firefox is up to date. IE will fool you into thinking your code is correct while Firefox will show your errors.

You cannot insert <html>,etc. inside a div because that and the other tags are only allowed once on a page and only at the beginning. It wouldn't make sense.
Copy linkTweet thisAlerts:
@rma_novoprint_eauthorAug 26.2005 — Hi!

I follow you advise and I install FireFox. I test my web and my surprise is that i see same as IE.

Maybe before i didn't explain it well. My target is display HTML page (or PHP page) inside a DIV. I use PHP and i include that HTML or PHP page inside DIV. In this case HTML page includes DOCTYPE directive. I created with MACROMEDIA MX 2004. I understand it's correct but if i chec HTML spec it is not possible...
Copy linkTweet thisAlerts:
@NogDogAug 26.2005 — Sounds like you might want to use an IFRAME instead of a DIV?
Copy linkTweet thisAlerts:
@rma_novoprint_eauthorAug 29.2005 — Yes, it sounds like IFRAME. I read is only supported bt MSIE. If this case it's not what i want to. I check this option and DIV and both works right. I still not sure if insert a HTML page inside a DIV is correct. I don't think so but it works with MSIE 6 and Firefox 1.06.

If IFRAME works in all browsers maybe I prefer IFRAME. It seems designed to what i want to.

thanks a lot !

PD: does exist a page to lookup what tags are supported for MSIE and other browsers?

--

Roger
Copy linkTweet thisAlerts:
@ray326Aug 29.2005 — The complete set of commonly needed elements are supported by all modern browsers.
×

Success!

Help @rma_novoprint_e spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...