Thread: NS and CSS

    #1
  1. No Profile Picture
    brian@studiom80.com
    Guest
    Devshed Newbie (0 - 499 posts)
    Greetings,

    Trying to figure out why...oh why...Netscape 4.75 does not like my code:

    <div id="1" name="Example" level="1" menutype="links" style="visibility: hidden; margin-left:10px;">
    <a href="#http://example" class="links">Example</a><br />
    </div>

    According to Netscape visibilty should be valid and so is it's value of hidden...but yet it is always visible.

    Also Netscape says it believes in Margin-Left...but it just sits there on the far left side mocking me.

    Any ideas?

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

    Join Date
    Dec 2000
    Posts
    9
    Rep Power
    0
    visibility text for netscape is:

    hide
    show
  4. #3
  5. No Profile Picture
    brian@studiom80.com
    Guest
    Devshed Newbie (0 - 499 posts)
    tried that too.

    Still no worky.

    <div id="1" name="Example" style="visibility: hide; margin-left:10px;">
    <a href="#http://example" class="links">Example</a><br />
    </div>
  6. #4
  7. No Profile Picture
    brian@studiom80.com
    Guest
    Devshed Newbie (0 - 499 posts)
    it appears Netscape does not care much for using style: in the <div> tag.

    putting the same style into the <a> tag worked.

    BUT I WANT IT IN THE DIV!

    Stupid work arounds...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Copenhagen, DK
    Posts
    231
    Rep Power
    14
    You can't use style and ID at the same time. Id is defined in head-tags, and style is for each div-tag with no ID. That's also why margin-left doesn't work. And I have always used visibility:hidden for css-positioning.
    Also, in my NS 4.7 I couldn't use "1" as ID, but it worked fine using "ID=er".
    By the way, you have mixed THREE styles:
    ID, style and class.
    Steffen

    [This message has been edited by oskar (edited January 05, 2001).]
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    sf, ca, usa
    Posts
    20
    Rep Power
    0
    hey,

    i've found that it only recognized some properties when you've defined the position.

    try adding "position:absolute;" to the style definition. (relative should do the trick too, but it seems to need the position attribute either way)

    my2c.
    darwin
  12. #7
  13. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    Just a correction for jaredn, while NS4 allows hide and show, it ALSO allows hidden and visible.

    ------------------
    Jason****Contact Me
    Moderator @ www.wsabstract.com
    Javascript Request and Installation Help forum
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    1
    Rep Power
    0
    With respect to using ID names, in NS they must begin with an alphabetic character, with IE they can begin with alphanumerics or the underscore character.

    If you use ID and NAME in the same tag, aren't they cancelling each other out?

  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    7
    Rep Power
    0

    CSS Questions


    Alright, I have a simple CSS file that I'm working on. Perhaps someone can take a look at it and teach me if I've done something wrong. I must admit I just started using CSS after all this time.

    Everything looks fine in IE, and NS 6, but NS 4 shows the default fonts. Below is what I used in my external CSS file.

    Thanks for your assistance.







    .pnistyles {
    font-family: Verdana;
    font-size: 15 px;
    }

    A:link {
    color: Blue;
    text-decoration : underline;
    }
    A:active {
    color: Black;
    }
    A:visited {
    color: Blue;
    }
    A:hover {
    color: Green;
    text-decoration: overline;
    }




    .linkstyles {
    font-family: Verdana;
    font-size: 15 px;
    }

    A:link {
    color: Blue;
    text-decoration : underline;
    }
    A:active {
    color: Black;
    }
    A:visited {
    color: Blue;
    }
    A:hover {
    color: Green;
    text-decoration: none;
    }





    .topsylestyles {
    font-family: Verdana;
    font-size: 20 px;
    }
  18. #10
  19. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    7
    Rep Power
    0
    woops - meant to do a POST, not reply .. Sorry! :-)

IMN logo majestic logo threadwatch logo seochat tools logo