/    Sign up×
Community /Pin to ProfileBookmark

Some problems with tags DIV and LAYER

I have some problems with tag div. When I use next code

<div id=m1 onmouseout=menuOff(1,1) onmouseover=menuOn(1,1)>
<layer onmouseout=menuOff(1,1) onmouseover=menuOn(1,1)>

for mouseover-visible-layers all browsers read it correct.

When I use

<div><layer>

for all-time-visible-layers some browsers (for example Opera7 or Netscape 4.7)
can’t support CSS-properties such as font-size or position.

Please, give answer if you know what kind of problem in my code.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisFeb 19.2003 — NS 4 has a different way of storing the styles than other browsers. They use three arrays - document.tags, document.classes and document.ids - which store the styles. Since a LAYER (or a DIV that is positioned) has it's own DOCUMENT, I would expect it to have it's own style arrays. If nothing is specified, they are probably empty. I don't know if there is any inheritance. You could try repeating your style definitions inside the LAYER.

I don't know anything about Opera. According to W3C recommendations, browsers are supposed to ignore any tag that it does not recognize and it's contents. However, I know that IE does not follow this recommendation.
Copy linkTweet thisAlerts:
@StefanFeb 20.2003 — [i]Originally posted by ptik [/i]

When I use

<div><layer>
[/QUOTE]


But why would you want to?

NS 4.x understands <div> just fine.

Get rid of that crappy <layer> stuff, it's not needed.
×

Success!

Help @ptik 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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