Log in

View Full Version : adding color font to this code


ShawneyJ
09-02-2007, 11:58 AM
just wondering if im able to add a color font in this code to change the font color please.
it just shows up as black some how and i want to chage this by adding some sort of color code.
thanks if someone can please help :)

<td align="right">
<div style="float:right; padding-right:9px; padding-bottom 12px; font-size:10px; font-weight:bold">::
<a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum</a> :
<a href="$vboptions[homeurl]">Home Page</a> ::
</div>
<BR>

Dean C
09-02-2007, 12:40 PM
<td align="right">
<div style="float:right; padding-right:9px; padding-bottom 12px; font-size:10px; font-weight:bold; color: #hexcodehere;">::
<a href="$vboptions[forumhome].php$session[sessionurl_q]">Forum</a> :
<a href="$vboptions[homeurl]">Home Page</a> ::
</div>
<BR>

ShawneyJ
09-02-2007, 12:44 PM
thanks man but that changed the :: in the code instead of the font.

edit: silly me didnt try adding this <font color="red">Home Page</font>

works great thanks.

Dean C
09-02-2007, 01:21 PM
Argh of course. You shouldn't really be using inline CSS, or <font> tags. Inline CSS is bad practice, and <font> tags were depreceated a long time ago.

Use class="color: red;" on your <a> tags instead for now :)