What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » css question

css question
Author: Message:
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. css question
how do you get css to automatically itilize all text within and including brackets? ()

i'm tired of typing <i>(123)</i> all the time =(
11-07-2006 02:42 AM
Profile E-Mail PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: css question
I dont think thats possible. Unless maybe you use something like php after you've typed up your code and use str/preg_replace() to put the italic tags in.
Or if you use something like notepad++ then you can do a replace all.

This post was edited on 11-07-2006 at 08:48 AM by hmaster.
[Image: sig.png]
11-07-2006 07:28 AM
Profile PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
RE: css question
You could just type "(123)" and then replace "(" with "<i>(" and replace ")" with ")</i>".

I don't think that CSS can automatically add the style to stuff in brackets, but it can add brackets. "<span class="awesome">123</span>" can be styled to show as "(123)", I can't remember how though.

This post was edited on 11-07-2006 at 07:44 AM by rav0.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
11-07-2006 07:39 AM
Profile E-Mail PM Web Find Quote Report
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: css question
Hi,

CSS selectors can match a tag, an element assigned a particular ID, an element assigned a particular class, and certain combinations thereof.

They can not match text patterns and it's difficult to think of a shorter tag than <i> (although I would suggest <em> instead) -- so you are already doing it the best way.
11-07-2006 07:50 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On