Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  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
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

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

    Hi Chava,

    Sorry the other example was being overidden by your previous settings for the a tag

    try this:

    <span class="redtextu"><a href="/index.php?main_page=products_all">All Items</a></span>

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

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

    Hi RuFuS
    I changed the text for the link, but it remains the visited blue color and isn't underlined.

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

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

    Hi Chava,

    Im sorry, I forgot to add the CSS change to the last post

    .redtext, .redtextu a {
    color: #990000;
    }

    .redtextu a {
    text-decoration: underline;
    }


    I obviously had not had enough coffee

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

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

    Hi RuFuS
    I'm sorry to be such a pain, but that didn't work either. Perhaps something else is hanging it up. I seem to have a general problem with the visited color for links.

    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, 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.
    Could this have anything to do with the links problem in my text area?
    Thanks, Chava

 

 
Page 1 of 2 12 LastLast

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