Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question body styles are not applying to any text in define pages, any suggestions??

    I'm working on a ZC site on localhost and I've noticed that some of the body styles (font, font-size, font-eeight) are not applying to text in any of my define pages, e.g. define_main_page, shipping, etc.

    I've done ZC carts before and not had this happen before...body style always worked properly for all text.

    The CSS for each define page looks like this:

    <div id="pageTwoMainContent" class="content">, content is always present...

    I tried creating a content class and nothing happened either...
    Adding styles to centerColumn did not work either...

    I've double-checked that I have no other CSS over-riding the BODY tag CSS.
    I also validated the CSS...checks out fine.

    Any suggestions????

    Thank you, Tom
    Last edited by tlyczko; 8 Feb 2013 at 12:58 AM.

  2. #2
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: body styles are not applying to any text in define pages, any suggestions??

    Got things styled correctly with this:

    /* 2/7/13 this .content section is required to correctly style all define pages text */
    .content P {
    font-family: BitstreamVeraSansRoman, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px; /* 2/5/13 was 13px */
    line-height: 20px; /* 2/5/12 was 20px */
    text-align: left;
    }

    Don't really know why as I never had to do anything like this for previous ZC sites...

    Comments welcomed.

    Thank you, Tom

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

    Default Re: body styles are not applying to any text in define pages, any suggestions??

    Well... the rules of styling are (as you know) quite straight-forward.

    Embedded (inline) styles will always over-ride a css stylesheet.
    Styles are declared in an element by their class or id - which is then referenced in the stylesheet.
    There is a "parent" - "child" and "inherit" capacity in CSS.
    Styles are "loaded and applied" in a browser in list-order. If I make a declaration on line 10 that a div ID is in red text, then on line 11 I delcare it as green text, then everything for that DIV will be in green text. There is a chronology here.

    If you are not seeing the styles you desire, then something is interrupting one of the fundamentals I describe above
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: body styles are not applying to any text in define pages, any suggestions??

    View the page in a browser and grab the source... what is the ID / Class of the offending element, and where is its style being declared?
    20 years a Zencart User

 

 

Similar Threads

  1. v139h Are there any suggestions for Point of Sale with my online store?
    By amyleew in forum General Questions
    Replies: 4
    Last Post: 2 Aug 2014, 01:13 AM
  2. Attributes Not Applying. any ideas?
    By sleer in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2011, 03:57 AM
  3. why can I not edit any of the pages in Define Pages editor?
    By touchclothing in forum General Questions
    Replies: 5
    Last Post: 20 Aug 2009, 04:21 PM
  4. Define Pages Editor Now Not Giving Any Options
    By cwiley in forum Customization from the Admin
    Replies: 6
    Last Post: 9 Aug 2008, 11:31 PM
  5. Taxes not being applied... Any suggestions?
    By squidliberty in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 5
    Last Post: 9 Sep 2006, 06:17 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR