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 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2008
    Location
    Ireland
    Posts
    40
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Style Numbers Only with CSS

    Is it possible to have a tag that applies a style (background image) to just numbers? I am creating a website for a club with Lotto results in an RSS feed and to make it easier for the user, i want to have the style added to just numbers in the text entered.

  • #2
    New Coder
    Join Date
    Oct 2008
    Location
    Ireland
    Posts
    40
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Just bumping this back up...

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Short: No.
    Long: You can if you have some JavaScript loop through your text and wrap span elements around strings of numbers which can then be styled with CSS.


  •  

    Posting Permissions

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