Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Why isn't arial black displaying?

  1. #1
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Question Why isn't arial black displaying?

    Code:
    #title {
    display: inline;
    font: 14px arial black;
    margin: 0 50px 0 50px;
    padding: 0;
    text-align: left;
    }
    Code:
    <div id="title">
    <a href="/">Japan Town</a> > News<br>
    </div>
    page: http://japantown.awardspace.com/news/
    Last edited by Johnnymushio; 04-24-2011 at 09:06 AM.
    My Web Site
    Japan Town

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Johnnymushio,

    the font shorthand does not include color as an attribute.
    These are the allowable values...
    font: [font-style] [font-variant] [font-weight] [font-size/line-height ] [font-family ]
    ...so color must be independently specified.

    coothead

  3. #3
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    The font is named "Arial Black", regardless of which color it is.

    I tried putting it in quotes, separating it from the font-size, nothing seems to work.
    My Web Site
    Japan Town

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Johnnymushio,

    I apologize for misunderstanding your problem, I forgot that 'arial black' was a font.

    Nevertheless, on testing, all of my browsers rendered 'arial black' in your code as expected.

    Are you sure that you have it on your hard drive?

    coothead

  5. #5
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    You know, I just checked and I don't, which I do not understand because I know I see arial black on several sites and it always stands out to me. I tried setting font-weight to "bolder" but I just can't seem to nail the look I see elsewhere. I'll keep trying I guess, thanks.
    My Web Site
    Japan Town

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    in addition, when a font name is more than one word, it needs to be quoted.
    Code:
    font: 'arial black';
    (that's probably why coothead thought you were specifying the Arial font and black color.)

  7. #7
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Okay, I found the font I was looking for on this threads page. Is it not arial black? Any font buffs here know the name/style/type of font this is on this page?

    (at the top)

    Dynamic Drive Forums > General Coding > CSS
    Reload this Page Why isn't arial black displaying? <---
    My Web Site
    Japan Town

  8. #8
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    no, actually it's regular Arial inside a <strong> tag.

  9. #9
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Ah, you're right. I tried the strong tag before but I thought it wasn't the same, but it is.

    Is there a way to use strong with css instead of html?

    also, to get that style of font, not only should it be wrapped in strong tags, but it needs a font-weight of bold as well.
    Last edited by Johnnymushio; 04-24-2011 at 01:00 AM.
    My Web Site
    Japan Town

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Best you can do:

    Code:
    font: bold 14px 'arial black', arial, sans-serif;
    The rest is up to the browser and the installed fonts of the user.

    Are you worried about the words 'Japan Town' though? Those are in an a tag. So the style rules for the a tag would apply if different from the id="title' selector.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •