Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-06-15 10:37:03

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

[textile] two differently colored letters inside the blue word

i would like to achieve this:

inside the paragraph is the word cars24.com which is in blue and 24 inside it is in red.

is it possible?

this is not working:

%(cars)cars%%(number)24%%(cars).com%

Offline

#2 2011-06-15 11:06:09

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [textile] two differently colored letters inside the blue word

Never succeeded getting a span inside a span. But you can put an em inside it and style it accordingly.
%(red)cars[_24_].com%


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2011-06-15 11:23:36

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: [textile] two differently colored letters inside the blue word

Or your could of course use…

%(red)cars<span>24</span>.com%

…but I think Uli’s example is better HTML – not good to use too many spans in your designs and since you are emphasising the number by colouring it then em is semanticly correct and logical.

Offline

#4 2011-06-15 11:33:44

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [textile] two differently colored letters inside the blue word

jebiii! thank’s uli

Offline

#5 2011-06-15 14:11:41

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: [textile] two differently colored letters inside the blue word

Also this is possible [%(cars)cars%][%(number)24%][%(com).com%]

Offline

Board footer

Powered by FluxBB