www.webdeveloper.com
Results 1 to 13 of 13

Thread: Colored words?

  1. #1
    Join Date
    Feb 2012
    Posts
    264

    Colored words?

    How do I get the words of my website (www.eduardlid.net): spanish (in red), german (in black) and inglÚs (in blue)? Adding to the html file or css sheet?

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    Given hopw you currently have that part of your site, I would suggest the <font> tag.

  3. #3
    Join Date
    Feb 2012
    Posts
    264
    Ok, thanks!

  4. #4
    Join Date
    Nov 2002
    Posts
    2,632
    Quote Originally Posted by NoEffinWay View Post
    Given hopw you currently have that part of your site, I would suggest the <font> tag.
    Deprecated in 1999. This should be done via CSS.

  5. #5
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    Quote Originally Posted by spufi View Post
    Deprecated in 1999. This should be done via CSS.
    I would normally agree with you but given the 'structure' of his site, it is the easiest way.

  6. #6
    Join Date
    Nov 2002
    Posts
    2,632
    Quote Originally Posted by NoEffinWay View Post
    I would normally agree with you but given the 'structure' of his site, it is the easiest way.
    Code:
    <font color="red">Spanish</font>
    Vs.

    Code:
    <span id="spanish">Spanish</span>
    Code:
    #spanish {
        color:red;
    }
    What structure he is using that prevents him from using the proper code is beyond me.

  7. #7
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    Quote Originally Posted by spufi View Post
    Code:
    <font color="red">Spanish</font>
    Vs.

    Code:
    <span id="spanish">Spanish</span>
    Code:
    #spanish {
        color:red;
    }
    What structure he is using that prevents him from using the proper code is beyond me.
    Never said 'prevents' simply said 'easiest'

  8. #8
    Join Date
    Nov 2002
    Posts
    2,632
    It's easier to learn the proper way first.

  9. #9
    Join Date
    Feb 2012
    Posts
    264

    Colored words

    Quote Originally Posted by spufi View Post
    Code:
    <font color="red">Spanish</font>
    Vs.

    Code:
    <span id="spanish">Spanish</span>
    Code:
    #spanish {
        color:red;
    }
    What structure he is using that prevents him from using the proper code is beyond me.
    Done! Thank you very much!

  10. #10
    Join Date
    Mar 2012
    Location
    chandigarh
    Posts
    33
    Hmm Great work asa. You are too good.
    but what I do if I need to coloured a just tablebox, But also in tablebox I just want to coloured a single box??? If you have any Idea ???

  11. #11
    Join Date
    Feb 2010
    Location
    Amsterdam
    Posts
    174
    i would not use an id put use class instead, you cannot repeat id's on a page.

    Code:
    <span class="spanish">Spanish</span>
    .spanish { color : red; } 
    <span class="spanish">this can be repeated</span>
    <span class="spanish">this can be repeated</span>

  12. #12
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Quote Originally Posted by Gozzy82 View Post
    i would not use an id put use class instead, you cannot repeat id's on a page.

    Code:
    <span class="spanish">Spanish</span>
    .spanish { color : red; } 
    <span class="spanish">this can be repeated</span>
    <span class="spanish">this can be repeated</span>
    I'll 2nd that.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  13. #13
    Join Date
    Feb 2012
    Posts
    264
    Quote Originally Posted by Gozzy82 View Post
    i would not use an id put use class instead, you cannot repeat id's on a page.

    Code:
    <span class="spanish">Spanish</span>
    .spanish { color : red; } 
    <span class="spanish">this can be repeated</span>
    <span class="spanish">this can be repeated</span>
    Ok, thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles