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 8 of 8
  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

    Superscript and Subscript

    Hi there

    Could anyone possibly tell me whether it is possible to use super and subscript in html. Also, is it possible to use the Greek alphabet, i.e. alpha, beta (using symbols rather than English spelling).

    Your help would be appreciated

    See ya

    Ivy
    See ya

    Ivy.

    MAC Codes

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    London
    Posts
    220
    Thanks
    0
    Thanked 0 Times in 0 Posts
    not sure about greek.

    <sup>superscript</sup>
    <sub>subscript</sub>

    Mxx
    "Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    London
    Posts
    220
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this

    Mxx
    "Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'

  • #4
    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 murphyz

    That's excellent... Thank you so much!

    See ya

    Ivy
    See ya

    Ivy.

    MAC Codes

  • #5
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,453
    Thanks
    1
    Thanked 21 Times in 19 Posts
    There are MathML entities for the Greek alphabet, and Unicode characters.

    But, if you really want to keep it simple, use the Symbol font.

    I can't remember what the XHTML/CSS code is for this off the top of my head, but I think you'd use:

    <span style="font-family:Symbol">p</span> for pi.

    Or you could just do what murphyz said... Incidentally, the only instance I can think of where you need both Greek characters and superscripts/subscripts is mathematics formulae... which MathML was written for. Perhaps you should try it, using the Amaya editor from the W3C...
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #6
    ivy
    ivy is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    London / Glasgow / Liverpool
    Posts
    177
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hey A V

    Thank you too! That's a great idea to use the symbol font.

    I'll also check out the MathML entities.

    Thank you once again

    See ya

    Ivy
    See ya

    Ivy.

    MAC Codes

  • #7
    ivy
    ivy is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    London / Glasgow / Liverpool
    Posts
    177
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I know it's a while since this was originally posted, but I nearoly posted a message to see if anyone knew how to use the symbol font (all of it) in html.

    Well, fear not, I will not ask that question, nut give you the answer - there has to be at least one other person who wants to use this font... All the codes are listed here:

    http://www.hclrss.demon.co.uk/demos/symbol.html

    The sites recommended above were good, but didn't have all teh symbols I needed. I am basically building a medical site and so I'm using a lot of maths and Greek symbols etc.

    Hope this helps somebody else.
    See ya

    Ivy.

    MAC Codes

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by murphyz
    Mxx
    __________________
    "Imagination is more important than knowledge" A. Einstein
    Hey, man...
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·


  •  

    Posting Permissions

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