#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    9
    Rep Power
    0

    CSS property work in IE but not Mozilla


    Hi all

    i am using the CSS display property to show/hide selected text on a webpage. The user clicks on a link which then shows hidden text and then clicks on another link to hide the text. This works fine in IE but not in Mozilla.

    does anyone know what i can do to make it work in Mozilla ?

    atttached is a zip file of my webpage/code

    thanx

    chris
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    9
    Rep Power
    0
    oops : forgot to attach
    Attached Files
  4. #3
  5. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,007
    Rep Power
    2791
    You have HTML comment tags within the <STYLE> tags. You should be using CSS comment tags, not HTML. That is why is it not working.

    /* grey : #808080 orange:#A13F00 */

    /* define IDs needed for identifying the text blocks to show/hide */
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    9
    Rep Power
    0
    PhP

    thanx for that. i always thought comment code inside HTML files had to be <1-- --> and that /* */ applied to js code

    chris

IMN logo majestic logo threadwatch logo seochat tools logo