Results 1 to 5 of 5
  1. #1

    Default The Peso Symbol Hack


    More often we use the acronym Php to indicate a monetary value as Philippine peso. If you want to save letter space and use the conventional peso symbol with the combined P and = sign, use this css code:

    <edit>
    Code:
    P<span style="vertical-align:0.1em;margin-left:-0.7em">=</span>
    </edit>

    In the old days of the typewriter era, we could conveniently use the peso symbol placed in one of the number keys. While coding for an e-commerce web site, I thought of a way to abuse CSS to get the peso symbol I wanted without resorting to using icons.

  2. #2

    Default Re: The Peso Symbol Hack

    A good way to make an illusion for Peso in html formats.
    I still wonder why you use word "hack" in this topic.

  3. #3

    Default Re: The Peso Symbol Hack

    clever... hehe! thanks!

  4. #4

    Default Re: The Peso Symbol Hack

    Hahaha! nice work bai. I sure could make a use of this. Cool css hack!

  5. #5

    Default Re: The Peso Symbol Hack

    Quote Originally Posted by dodie
    I still wonder why you use word "hack" in this topic.
    It's a workaround for a text character problem, therefore a "hack". Hehe.

    A neater way to write this code is to separate the CSS code and assign a class to the = sign:

    HTML code
    Code:
    P<span class="pesosymbol">=</span>
    CSS code:
    Code:
    .pesosymbol {vertical-align:0.1em;margin-left:-0.7em}
    This way, the html code is neater and the = sign can be quickly aligned to P by modifying only the CSS code when the need arise, such as when changing font attributes.

  6.    Advertisement

Similar Threads

 
  1. Looking For: The Lost Symbol Pre-orders
    By tambuk in forum Books & Magazines
    Replies: 7
    Last Post: 07-18-2009, 10:11 PM
  2. The Esoteric Symbolism of Easter
    By regnauld in forum Spirituality & Occult - OLDER
    Replies: 17
    Last Post: 04-15-2009, 11:37 PM
  3. Replies: 2
    Last Post: 01-09-2008, 11:56 PM
  4. Q&A with the Forefather of Hacking - Kevin Mitnick
    By inspector_ronan in forum Websites & Multimedia
    Replies: 7
    Last Post: 09-18-2007, 07:20 AM
  5. The peso is free falling!
    By patsadahon in forum Politics & Current Events
    Replies: 16
    Last Post: 06-14-2006, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top