Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default How Do I Get Font Style To Change?

    This is the code in CSS for my product page:

    #productDescription, .productGeneral.biggerText {
    color: #444443;
    font-family: georgia,serif;
    font-size: 140%;
    font-style: italic;
    float: left;
    padding-left: 1em;
    margin-left: -10px;

    http://www.designerperfumesnob.com/w...Body/edp/2.8oz

    Directly above the fragrance notes and under the image, I’m going to add some text, and I’d like to have that portion of the product page in normal font. It will be an ongoing process to add text to all products and each product will have different content.

    Is there code I can add to the actual product page to change the font style for this portion and then have it go back to italic for the rest? Would I add something to CSS instead? Maybe both :) ?

    Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Do I Get Font Style To Change?

    A bit of both will be your best answer.

    Wrap your added text in HTML tags with a classname, like
    <p class="specialDesc1">Your non-italicized content.</p>
    and insert the whole thing at the top of your product description. Use the same classname for all products.

    In your stylesheet, add a rule like
    Code:
    .specialDesc1 {font-style: normal;}
    All items with this classname will have the style you specify.

  3. #3
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: How Do I Get Font Style To Change?

    Quote Originally Posted by gjh42 View Post
    A bit of both will be your best answer.

    Wrap your added text in HTML tags with a classname, like
    <p class="specialDesc1">Your non-italicized content.</p>
    and insert the whole thing at the top of your product description. Use the same classname for all products.

    In your stylesheet, add a rule like
    Code:
    .specialDesc1 {font-style: normal;}
    All items with this classname will have the style you specify.
    Thank you very much. I added a few more specifications to it and got it just the way I want.

    Appreciate the help and fast response!

 

 

Similar Threads

  1. v151 change font style but font it isn't on pc how to do?
    By giuly in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Mar 2014, 02:58 PM
  2. Change font style
    By Amar619 in forum General Questions
    Replies: 2
    Last Post: 17 May 2013, 07:28 AM
  3. How do I change the font color and font style for the tag line?
    By Beyond Dreams in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 17 Feb 2013, 10:33 PM
  4. Font size, color and style change in side boxes
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Oct 2010, 03:45 AM
  5. Sidebox Header - Change Font Style
    By racquel in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 15 Aug 2007, 07:43 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