Results 1 to 10 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Change Few Words in Text to Different Font Color

    [FONT=Times New Roman]I have been trying to change a few words of text on my main page to a different color using <font color> which is obviously incorrect, as the color doesn’t appear in Firefox.[/FONT]

    [FONT=Times New Roman]I understand that I will need to add this to my stylesheet, but I’m not certain where I should enter it.[/FONT]

    [FONT='Courier New'].redtext { #990000 } [/FONT]

    [FONT=Times New Roman]and I should add this before and after the text I want to change on my main page:[/FONT]

    [FONT='Courier New']<span class="redtext">My Text Goes Here</span>[/FONT]

    [FONT=Times New Roman]My second question: Do I need to add something to the stylesheet for this also:[/FONT]

    [FONT=Times New Roman] I have two links at the bottom of my main page text and I am trying to make the font for these links text a different color. I added the font color inside the <a> tags, as follows:[/FONT]
    [FONT=Times New Roman]For a quick view of "all" items, click here for <a href="/index.php?main_page=products_new"><font color="990000"><u>Newest Items</u></font></a>[/FONT]
    [FONT=Times New Roman][/FONT]
    [FONT=Times New Roman] but I understand I am suppose to add this and eliminate the > after the word new:[/FONT]

    [FONT=Times New Roman]<a href="/index.php?main_page=products_new" style="color: rgb(153,0,0)"><font color="990000"><u>Newest Items</u></font></a>[/FONT]

    [FONT=Times New Roman]Do I also have to add something to the stylesheet for this also.[/FONT]

    [FONT=Times New Roman]Thanks for any help.[/FONT]


  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi Chava,

    change your css to

    .redtext {
    color: #990000;
    }

    I went to look at your site again http://www.antiquesbycharla.com/ but I could not view it?


  3. #3
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi RuFuS
    Thanks so much for your help again. You should be able to access my site.
    Would you know where I should enter this in my stylesheet.
    Chava

  4. #4
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi Chava,

    Just put it at the end of your stylesheet

    if you actually put this:

    .redtext, .redtextu {
    color: #990000;
    }
    .redtextu {
    text-decoration: underline;
    }


    You can use css for the two links at the bottom of the page (Question 2) as below:

    <a class="redtextu " href="/index.php?main_page=products_new">Newest Items</a>

    Hope this answers your questions

  5. #5
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi RuFuS
    I'm pretty sure I did it exactly as you mentioned. The first part appears to have worked correctly. The links below didn't. They appear in the blue color that I have designated for visited links and they aren't underlined. Any idea what I might be doing wrong.
    Thanks

  6. #6
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Even after making the changes to the text color, as above, it is still not showing up as red when viewing in Firefox. Anyone know what's up with firefox? Does Firefox require special coding?

  7. #7
    Join Date
    Jul 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Quote Originally Posted by RuFuS View Post
    Hi Chava,

    change your css to

    .redtext {
    color: #990000;
    }

    I went to look at your site again http://www.antiquesbycharla.com/ but I could not view it?

    I like your web site. What did u use to make your header?

    Dave

  8. #8
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi Chava,

    Unfortunately my test machine blew its memory last week and I am yet to order some more so I can only test in Firefox 2.0.0.7 and IE 7.0.6.

    If I can't see it, I can't fix it.

    It does work fine in both these browsers though.

  9. #9
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Thanks RuFuS
    I appreciate all your help. Just doesn't make sense to me that it doesn't work in IE6 with this new coding. Also, when I tested it in an online website browser tester for Firefox, it didn't show up as red text there either.

    Hopefully, someone can offer some more insight.
    Thanks again. Chava

    Thanks for the compliment Dave. I'm not sure I know what you mean by "what did I use to make my header". It's a custom made logo/banner.
    Chava

  10. #10
    Join Date
    Apr 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Change Few Words in Text to Different Font Color

    Hi RuFuS
    You are correct in that the coding does work in most browsers. Found a place on line where you can have your site checked in different browsers and the majority showed the code correctly.


    But! I have no idea what is happening on my end. Before I changed to this correct coding, I was just using <font color> and <u> and it showed up fine for me (red and underlined), but when I corrected the coding, the "Newest Items" and "all items" at the end of the text are in my blue visited color and no underline.

    Also having a second problem, when I click on links in my categories, the items turn the blue visited links color. Problem is that once logged out and go back in, the previous blue links have changed back to the regular black (which is correct), but when I click on any one link, they "all" pop back up again. This happens even after I clear my cache and completely close down computer. They are only supposed to remain the visited color until you leave the site.

    Obviously, these two problems must be related, but I have no idea why it's happening.

    Does anyone have any ideas on why this is happening and the code doesn't show correctly on my computer. I use IE 6.0 and when I checked online, it works correctly for that browser.

 

 

Similar Threads

  1. Font color on all text changes color when clicked
    By mariasims in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Jul 2010, 08:15 AM
  2. change color of words in shopping cart sidebox
    By luvstoxstitch in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Jun 2010, 05:19 AM
  3. How to change "cartProdTitle" different text color on odd and even
    By tnjon in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Dec 2008, 11:54 PM
  4. Replies: 5
    Last Post: 27 Dec 2007, 08:41 AM
  5. Change a few words?
    By FashionMostWanted in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Feb 2007, 03:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg