Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation font: italic small-caps 900 12px arial - please explain.

    I am trying to find out what the number '900' is supposed to do. Experimentally, it does not seem to be linear in its effect.

    font: italic small-caps 900 12px arial

    Thanks,

    effpeetee

  • #2
    New Coder
    Join Date
    Apr 2007
    Location
    Silicon Valley California
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It would be the font color if you put the '#' sign in front of the '900', like:

    Code:
    font: italic small-caps #900 12px arial;
    Hexidecimal numbers with 3 sets of repeating digits like, 990000 can be written in short-hand as 900 instead. The # tells the CSS interpreter that you are applying a color.

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Yes, but this was taken from the official site and altering the number alters the font size, but not in a linear fashion.The code was cut and pasted and did not have the # with it.

    effpeetee

    W3C Cut and paste

    <style type="text/css">
    p
    {
    font: italic small-caps 900 12px arial
    }
    </style>



    http://www.w3schools.com/css/tryit.a...me=trycss_font
    Last edited by effpeetee; 05-25-2007 at 09:05 AM. Reason: Added explanations

  • #4
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    By the looks of the output from that editor it has something to do with how italisised (sp?) the text is. However, don't quote me on that because I've never seen this property used before?
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by ahallicks View Post
    By the looks of the output from that editor it has something to do with how italisised (sp?) the text is. However, don't quote me on that because I've never seen this property used before?
    font: italic small-caps 900 12px arial

    If you change the number from 900 to 1000, the effect is enormous, size-wise'
    If you reduce it to 800 the effect is barely noticeable.

    Most peculiqueer!

    effpeetee
    www.exitfegs.co.uk

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Here we go again with you posting your link in threads.

    Here is a good article on the shorthand properties of CSS
    http://home.no.net/junjun/html/shorthand.html
    Look at the shorthand properties for 'font'. It should clear some things up. This is what it would look like without using shorthand
    Code:
    font-style: italic;
    font-variant: small-caps;
    font-weight: 900;
    font-size: 12px;
    font-family: arial;
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thank you for the explanation. I am surprised that as it came from a teaching site, that it was not made clear. Then I would not have troubled you all.

    Here we go again with you posting your link in threads.

    I do not understand this rather unkind remark

    Regards,

    effpeetee
    Last edited by effpeetee; 05-25-2007 at 10:07 AM.


  •  

    Posting Permissions

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