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 9 of 9
  1. #1
    ivy
    ivy is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    London / Glasgow / Liverpool
    Posts
    177
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Entity for x with overline (average symbol)

    Hi guys

    I need to display a mathematical symbol, the average symbol which is basically an x with an overline.

    Coudl somebody tell me the entity required, for example, to display the Greek letter omega I would use Ω

    I know I could use symbol font, but I would rather continue with teh way that I know (or don't in this case!!!).

    I understand some browsers will have difficulty displaying this symbol but... It is to be used on an intranet (mainly) so should be fine.

    Look forward to hearing from somebody...
    See ya

    Ivy.

    MAC Codes

  • #2
    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
    hmm i dunno if there is one, the closest i got was this
    Code:
    ‾x
    maybe you would be better of making this an image so you can ensure cross browser compatability?

  • #3
    ivy
    ivy is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    London / Glasgow / Liverpool
    Posts
    177
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi _Aerospace_Eng_

    That's the best I can do too!!! Mmmm starnge there doesn't seem to be one... Perhpas I'll hold out for a tad longer, thank you for your quick reponse...
    See ya

    Ivy.

    MAC Codes

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unicode chars

    You could always try and find your way through the unicode "symbol, math" collection, all eight-hunderd-and-ninety-nine of them!!!
    (I tried, real hard, but got really fed up after a while; there seem to be no occurrences of the word "average" in any of the sets I've looked in).

    Still, you have to check whether there's a font available that actually supports these characters -you can check this all on that site; as Aero suggested, the safest cross-browser solution would be to use either an image, or an x with an overline (symbol or through CSS).
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    Regular Coder
    Join Date
    Aug 2004
    Location
    The Netherlands
    Posts
    211
    Thanks
    0
    Thanked 1 Time in 1 Post
    MathML anyone?

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Same tree

    I went that route as well, but I got the impression it bases itself on the same unicode symbols.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #7
    Regular Coder
    Join Date
    Aug 2004
    Location
    The Netherlands
    Posts
    211
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hmmm, I guess a picture of the symbol would be the best solution then.

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Css?

    How does this look:
    Code:
    CSS:
    .avg {
    font-family: georgia, serif;
    font-style: italic;
    text-decoration: overline;
    }
    
    HTML:
    <span class="avg">x</span>
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #9
    ivy
    ivy is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    London / Glasgow / Liverpool
    Posts
    177
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi guys,

    Thank you so much for your replies... For some reason I did not receive an email advising me of the replies after my last comments...

    I decided to create an image as per the [original] suggestion of _Aerospace_Eng_

    However, ronaldb66 !!! You genius! In fact, I would just use the same font (Verdana, Arial) without italics as I feel they are not necessary and add the overline with css as per your suggestion.

    Is the overline compatible with all browsers? I think so... Gonna check!

    Thank you once again all.. And apologies for not replying sooner..

    See ya

    Ivy.

    MAC Codes


  •  

    Posting Permissions

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