Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Text formating not displaying per css

    I'm trying to create a new text display format. I think i did it right but it's not displaying correctly, so I must have done something wrong.

    Near the top of my stylesheet.css, I put:

    .tppHeading (
    color: #B5CF8E;
    text-align: center;
    }

    I modified the code for Tabbed Products Pro to use the new style and the code from the page created is:

    <!--bof Custom sc1-->
    <div id="sc1" class="tabcontent" style="display:block;">
    <div id="ProductDescriptionHeader1" style="display:block;">
    <div class="tppHeading">Product Details</div>
    </div>

    The code is from http://www.customcreationsunlimited.com/ test /index.php?main_page=product_info&products_id=1173 (spaced added to prevent spidering)

    but the text 'Product Details' has no formatting, it's plain. I've tried moving it lower in the css but no luck. What am I doing wrong?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Text formating not displaying per css

    Incorrect opening bracket in:

    .tppHeading (
    color: #B5CF8E;
    text-align: center;
    }

    As it's a single (unique) style, give it an ID rather than a class. Not sure if this will work, but try it:

    Code:
    #tppHeading {
    color: #B5CF8E;
    text-align: center;
    }
    ... and try putting it at the bottom of stylesheet.css

    Code:
    <!--bof Custom sc1-->
    <div id="sc1" class="tabcontent" style="display:block;">
    <div id="ProductDescriptionHeader1" style="display:block;">
    <div id="tppHeading">Product Details</div>
    </div>
    20 years a Zencart User

  3. #3
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Text formating not displaying per css

    Thanks! It was just the bracket.

 

 

Similar Threads

  1. Formating Text attribute for print
    By michaelchu in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 12 Jan 2012, 02:17 PM
  2. CSS image not displaying
    By strelitzia in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Aug 2011, 02:45 PM
  3. remove text formating in batch
    By kitcorsa in forum General Questions
    Replies: 0
    Last Post: 14 Jan 2010, 05:14 PM
  4. CSS not displaying
    By Jimmy Mac in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 30 Oct 2007, 11:55 AM
  5. Formating Text Area Attribute
    By mdegeiso in forum Bug Reports
    Replies: 4
    Last Post: 10 Jun 2007, 05:37 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