www.webdeveloper.com
Results 1 to 6 of 6

Thread: colored text on NS thru CSS, how?

  1. #1
    Join Date
    Feb 2004
    Location
    Cairo, Eygpt.
    Posts
    86

    colored text on NS thru CSS, how?

    Hello every body!

    Using the property "color:" gives a text the specified value of color on IE, but it doesnt on NS.

    Could someone please tell me how could I color text through CSS on NS?

    Thanks.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Which version of NS is it and can you give a snippet of code.

  3. #3
    Join Date
    Nov 2002
    Posts
    4,473
    What version of NS?

    What is the rest of your CSS?

    This will work in all versions that I am familiar with:
    Code:
    <style type="text/css">
    P {color: blue}
    </style>

  4. #4
    Join Date
    Feb 2004
    Location
    Cairo, Eygpt.
    Posts
    86
    Thank you very much gil davis and Fang for your help.

    gil davis is right, I could find out that it indeed works with ns as well, but ns doesnt accept the color value within quotes!

  5. #5
    Join Date
    Jul 2003
    Location
    Boston Area, Massachusetts
    Posts
    3,489
    Originally posted by Lotfi Abdolhal
    but ns doesnt accept the color value within quotes!
    This is because it isn't valid. No surprise here though, IE can only really handle invalid code. The only time you'll ever really need quotes in CSS is if you're using a font in which contains space in its name (e.g., font-family: "times new roman", serif).

  6. #6
    Join Date
    Feb 2004
    Location
    Cairo, Eygpt.
    Posts
    86
    GREAT Dear Fredmv!

    Thank you very much indeed for that.

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