SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Location
    New York
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Review - Taking Your Talent to the Web

    Hi, I bought and read the book - was very helpful to me. I have already put alot of the suggestions to work on my site - for example using CSS. But I am having a problem. The book suggests using PX (Pixels) as the font-size that will work in all browsers (Chapter 10 is entitled "Style sheets for Designers". ). The problem is it doesn't work in Netscape....

    Hold it - I take that back. I went back to the text as I was writing this and found my problem - I had the following in my style sheet:

    TD.maintxt {color: #000099;
    font-size: 18 PX;
    font-family: Verdana, Arial;
    text-align: right;
    }

    The text showed that px should be entered as:

    font-size: 18px;

    Apparently Netscape (7.0) don't like 18 PX; it wants 18px; (or 18PX.

    So I guess my question is this - after all these releases (7.0), why can't Netscape be more forgiving to us poor ole over-extended web designers - eh? I am no fan or Microsoft, but their browser is still tops - because they take into consideration the plight of the web developer.

    Michael Scott



    These comments are in regards to the SitePoint.com article \'Review - Taking Your Talent to the Web\'.

  2. #2
    Non-Member Siltrince's Avatar
    Join Date
    Aug 2001
    Location
    Belgium
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah well there are rules and they should be followed.
    An application with bad/missing code also won't do what you want.

    I remember that I made a similar mistake when I started with CSS. I only forgot to put px behind the textsizes:

    ...
    font-size: 10;
    ...

    that's the way I did it , worked perfect in Explorer , not in Netscape


Bookmarks

Posting Permissions

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