Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / body styles are not applying to any text in define pages, any suggestions??

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

Started by tlyczko on 7 Feb 2013, 11:52 PM · Views: 967

Results 1 to 4 of 4
7 Feb 2013, 11:52 PM
#1
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #1 by tlyczko

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

8 Feb 2013, 12:31 AM
#2
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Post #2 by tlyczko

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

8 Feb 2013, 1:24 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #3 by schoolboy

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

8 Feb 2013, 1:25 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #4 by schoolboy

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