strikethrough

Discussion in 'HTML' started by shank, Dec 2, 2003.

  1. shank

    shank Guest

    How can I cross-out a regular price with something other than a
    strikethrough?
    Is it possible to place a red 'x' over text, without using a graphic?

    thanks!
     
    shank, Dec 2, 2003
    #1
    1. Advertising

  2. shank

    brucie Guest

    in post <news:%g6zb.923$>
    shank said:

    > How can I cross-out a regular price with something other than a
    > strikethrough?
    > Is it possible to place a red 'x' over text, without using a graphic?


    http://stuff.bruciesusenetshit.info/red-x-thingy.html


    --
    brucie
    03/December/2003 07:57:43 am kilo
     
    brucie, Dec 2, 2003
    #2
    1. Advertising

  3. shank

    shank Guest

    "brucie" <> wrote in message
    news:bqj22f$223qre$-berlin.de...
    > in post <news:%g6zb.923$>
    > shank said:
    >
    > > How can I cross-out a regular price with something other than a
    > > strikethrough?
    > > Is it possible to place a red 'x' over text, without using a graphic?

    >
    > http://stuff.bruciesusenetshit.info/red-x-thingy.html


    This works great, but is there a way to control the baseline?
    Is it possible to lower the 'x' so its baseline is lower than the main line?
    thanks!
     
    shank, Dec 2, 2003
    #3
  4. shank

    brucie Guest

    brucie, Dec 2, 2003
    #4
  5. shank wrote:

    >>> How can I cross-out a regular price with something other than a
    >>> strikethrough?


    >>> Is it possible to place a red 'x' over text, without using a graphic?


    >> http://stuff.bruciesusenetshit.info/red-x-thingy.html


    > This works great, but is there a way to control the baseline?


    Not so great when you consider the side effects, e.g. what Google and anyone
    without CSS will see/hear/otherwise experience.

    $ lynx --dump http://stuff.bruciesusenetshit.info/red-x-thingy.html

    $120X now $150

    --
    David Dorward <http://dorward.me.uk/>
     
    David Dorward, Dec 2, 2003
    #5
  6. David Dorward wrote:
    > Not so great when you consider the side effects, e.g. what Google

    and anyone
    > without CSS will see/hear/otherwise experience.
    >
    > $ lynx --dump http://stuff.bruciesusenetshit.info/red-x-thingy.html
    >
    > $120X now $150


    You could do it with :after, but IE wouldn't see it.
     
    Leif K-Brooks, Dec 2, 2003
    #6
  7. "shank" <> wrote:

    > How can I cross-out a regular price with something other than a
    > strikethrough?


    What's wrong with strikethrough? You could use a little trick to make
    it take a color different from that of the text: use markup like
    <del><span>$120</span></del>
    and a style sheet like
    del { color: red; text-decoration: line-through; }
    del span { color: black; background: white; }

    > Is it possible to place a red 'x' over text, without using a graphic?


    Not really, not in any reliable way. And, after all, those x's wouldn't
    really be characters, would they? They are graphics more than
    characters. For simplicity, I would actually make the entire expression
    (the price and the "x") a single image, and use
    <img alt="Old price was $120." src="old120.gif">

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Dec 2, 2003
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Prof

    Want to strikethrough a text

    Prof, Jan 23, 2007, in forum: Javascript
    Replies:
    4
    Views:
    112
Loading...

Share This Page