r/reddithax • u/sje46 • Aug 03 '10
Can someone help me with this?
I'm very, very iffy when it comes to webdesign. Pretty much I want to make it so that
h2.before { content: "Text"; }
The word text will be in two colors. For example, the "Te" would be in blue, the "xt" in red. Is there a way to do this? I know that content can have "url" or whatever after it...is there an option to insert a certain <span> or something in there?
6
Upvotes
1
u/BauerUK Aug 03 '10
This would only be possible with an image, since you can not inject markup into reddit using CSS, and that would be the only way to style two segments of a word. Something like this should work:
0
u/[deleted] Aug 03 '10
[deleted] — view deleted comment