1. Rapid S

    Rapid S New Member Member

    Apr 4, 2010
    912
    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]
     
  2. CM

    CM New Member Member

    Nov 21, 2009
    1,444
    You should also add that you can either use the standard "Red, Blue, etc" or hex values. :)
     
  3. abhay26

    abhay26 New Member Member

    Oct 24, 2009
    1,329
    ^^ Dude, this is a webmaster forum. ^o)
     
  4. GoPantheoN

    GoPantheoN New Member

    May 13, 2009
    908
    i think "" will come
     
  5. Josh

    Josh New Member Member

    May 25, 2010
    76
    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>
     
  6. jayfella

    jayfella Well-Known Member Member

    Mar 25, 2009
    1,592
    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.
     
  7. Skords

    Skords New Member Member

    Mar 24, 2010
    659
    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.
     
  8. Rapid S

    Rapid S New Member Member

    Apr 4, 2010
    912
    i am teaching basics
     
  9. jayfella

    jayfella Well-Known Member Member

    Mar 25, 2009
    1,592
    Code:
    font-family: Times New Roman;
    Thats a font-face, not a family :o
     
  10. Rapid S

    Rapid S New Member Member

    Apr 4, 2010
    912
    jay,
    u can use font face
    ---
    there is only
    font also

    PHP:
    <font size="5" face="comic sans ms" color="red">A paragraph.</font>
     
  11. jayfella

    jayfella Well-Known Member Member

    Mar 25, 2009
    1,592
    yes i know you can use font face, but you cant give a font face value to a font-family property.
     
  12. Mac

    Mac New Member Member

    Apr 15, 2009
    1,837
    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.
     
  13. Veer

    Veer New Member Member

    Aug 21, 2009
    5,667
    Brilliant post RS :)
     
  14. jayfella

    jayfella Well-Known Member Member

    Mar 25, 2009
    1,592
    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.
     
  15. Maz

    Maz New Member Member

    Jul 20, 2008
    951
    lol..........
     
  16. Mac

    Mac New Member Member

    Apr 15, 2009
    1,837
    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
     

Share This Page