[HTML] How To Change Font Color + Bold

Status
Not open for further replies.

Rapid S

Active Member
912
2010
7
0
HTML:
 How To Change Font Color + Bold[/B]

To Change Font Color + Bold
[PHP]
<b><font color=type ur color name here>Admin</font></b>
<b><font color=red>Admin</font></b>
<b><font color=green>Admin</font></b>
[/PHP]hope i have explained well
[/CENTER]
 
15 comments
you're an idiot for posting something so simple...

also,
<font color="#FFFFFF" face="georgia"> White, Georgia font</font>
you can add to font..
rather than bold you can also do
<strong> yea man</strong>
 
Or, again, we can use CSS to standardize things:

Code:
.myTextFormatting {
    color: #1f1f1f;
    font-weight: bold;
    font-size: 12px;
    font-family: arial,sans-serif;
    text-decoration: none;
}

<div class="myTextFormatting">foo-bar</div>

or

<font class="myTextFormatting">foo-bar</div>
Now you dont need to keep re-declaring your preferences and can re-use it just by using the class.
 
damn jayfella i was gonna post the css thing :(

edit: i can still post with

myTextFormatting as id xD

#myTextFormatting {
color: #00FF00;
font-size: 16px;
font-weight: bold;
font-family: Times New Roman;
text-decoration: underline;
}

<div id="myTextFormatting">foo-bar</div>

or

<font id="myTextFormatting">foo-bar</font>

This will also underline yur text ;)

but uh..

ID = A person's Identification (ID) is unique to one person.
Class = There are many people in a class.
 
I prefer adding CSS code to a stylesheet and then using that class or if forced not to use stylesheets <span style="font-family: font; font-color: color;">text</text> (so css again but outside of a stylesheet :P)

IMO you shouldn't of posted this because it's basically the wrong way to declare text details.
 
The whole point of a stylesheet is so you can manipulate multiple things extremely easily. Example. I wanna change moderators from blue to pink. It requires ONE change, and only requires editing the CSS, not scary php or HTML files, which in all likelyness, you can easily fuck up.
 
I never thought of stylesheets as something that would simplify the style manipulation as I genarally don't reuse the elements in it; I always looked at it as a way to keep your HTML files nice, clean and tidy, which, for me, it really is :P
 
Status
Not open for further replies.
Back
Top