Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-24-2010, 07:17 PM   PM User | #1
CyberDave
New Coder

 
Join Date: Oct 2008
Location: Ireland
Posts: 39
Thanks: 5
Thanked 0 Times in 0 Posts
CyberDave is an unknown quantity at this point
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.
CyberDave is offline   Reply With Quote
Old 10-24-2010, 11:19 PM   PM User | #2
CyberDave
New Coder

 
Join Date: Oct 2008
Location: Ireland
Posts: 39
Thanks: 5
Thanked 0 Times in 0 Posts
CyberDave is an unknown quantity at this point
Just bumping this back up...
CyberDave is offline   Reply With Quote
Old 10-25-2010, 04:17 PM   PM User | #3
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
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.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:27 PM.


Advertisement
Log in to turn off these ads.