www.webdeveloper.com
Results 1 to 4 of 4

Thread: Some problems with tags DIV and LAYER

  1. #1
    Join Date
    Feb 2003
    Location
    Russia, Petrozavodsk
    Posts
    12

    Question 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.

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    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.

  3. #3
    Join Date
    Nov 2002
    Posts
    984

    Re: Some problems with tags DIV and LAYER

    Originally posted by ptik
    When I use

    <div><layer>
    But why would you want to?
    NS 4.x understands <div> just fine.
    Get rid of that crappy <layer> stuff, it's not needed.
    // Stefan Huszics

  4. #4
    celebguy_dv Guest

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles