3 replies [Last post]
Scotty13
Scotty13's picture
Offline
Regular
Last seen: 8 years 16 weeks ago
Timezone: GMT-5
Joined: 2011-01-28
Posts: 14
Points: 25

I want my “current airline” and “my first airline” to display in red (no link). I can’t seem to get. Could you please help?

Code…

<td width="100%" bgcolor="#F9F9F9" style="line-height:1.5em;" valign="top">
<span class="liteGreyColor textsize10">Posted ' . $whenAnno . ': <span>
<a href="http://www.*********.com.php?id=' . $uid . '"> ' . $username . ' </a> 
with ' . $<strong>currentairline</strong> . ' in ' . $country . '. My first airline was ' . $<strong>myfirstairline</strong> . '. </a> I just wanted to say... </p></span>' . $the_anno . '<em></em></span>
<span class="textsize10"></span> 

Thank you,
S

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 1 day ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Hi Scotty13, It should be

Hi Scotty13,
It should be just:

 strong{color:red;}

But being in a table may need
td strong{color:red;}

learnweb
learnweb's picture
Offline
newbie
Norwich, UK
Last seen: 8 years 30 weeks ago
Norwich, UK
Timezone: GMT+1
Joined: 2012-10-12
Posts: 1
Points: 1

Hi there.If applying a

Hi there.

If applying a colour to "strong" within CSS, then it will apply the red to all strong tags on the page, so an alternative option would be to create a new class which has a colour of red e.g.

.redText { color: red }

and apply this to a span tag around your strong tags. You can then re-use the strong tag across your site without having to worry that it will make all of your text red

e.g.

<span class="redText"><strong>currentairline</strong></span>

Thanks

http://www.learnweb.co.uk
...teaching you what you want to learn

kevin619
kevin619's picture
Offline
Regular
Fremont,CA
Last seen: 7 years 6 days ago
Fremont,CA
Timezone: GMT+5
Joined: 2012-02-16
Posts: 24
Points: 28

you just simply make css and

you just simply make css and using only font color = red.

Make sure you check out my>>App Designers Blog<<