Closed (fixed)
Project:
NineSixty (960 Grid System)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2009 at 16:19 UTC
Updated:
31 Jul 2009 at 08:55 UTC
I'm by now means a theming expert, so I'm probably the cause of this problem, but:
Ninesixty's text.css defines body thus:
body {
font: 13px/1.5 Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
}
If I create a subtheme with one additional stylesheet and add the following line to that stylesheet:
body{
font: 11px/1.5em 'Georgia';
}
for example, then nothing changes. I can override h1, h2, and pretty much anything else set in text.css, but changing the body tag is proving more difficult. What am I doing wrong?
Comments
Comment #1
dvessel commentedCould you list all the styles listed in the head of your page in the exact order it's shown?
Comment #2
jim0203 commentedninesixtysub.css is the stylesheet which should change the body tag.
Comment #3
chris_getdepth commented*edit ive found the root of my problem - it was down to a badly placed ; so nothing to do with ninesixty theme at all!
cheers
cnp
Comment #4
rok@luckypressure.com commentedComment #5
jim0203 commentedMy original issue still hasn't been addressed - I've tried a completely clean install with a 960 sub theme, and I can't seem to change the body tag.
Comment #6
rok@luckypressure.com commentedFirst to override the stylesheet, you should rename your css file from "ninesixtysub.css" to "styles.css" and put it in the folder "/sites/all/themes/ninesixtysub/styles/". Try this and see what happens.
You should check sub-themes structure and inheritance, http://drupal.org/node/225125
Comment #7
dvessel commentedI think the way you added the rule is invalid:
bad:
That "11px/1.5em" doesn't look right. When written out like that, you can't mix measurement types. Omit the "em" or add "px" instead then it should work.
good:
I missed it on first glance but try changing that.
Comment #8
dvessel commentedThis was never a NineSixty issue. Hope that works out for you.
Comment #9
jim0203 commentedI just did a completely clean install of D6 and 960 and took my CSS from Mark Boulton's site; http://markboulton.co.uk/global/css/typography.css - I'm taking this way of writing CSS from Mark.
Specifically, I added
To my custom css stylesheet, and it worked fine - see http://dev.state68.com/, and the stylesheet at http://dev.state68.com/sites/all/themes/ninesixtysub/style.css. I'm not quite sure what was going wrong before, but the CSS is right, for the record. Thanks for your help; I'll post back if I get the same problem again and can replicate it.