I seem to have a persistent style issue I can’t resolve easily. At the bottom of the page linked to, there’s an inline two-cell table. I created it to hold make a two-column list of useful links.
The text in each cell has been styled using the same style as the rest of the page, but has had the list attribute applied. The problem is this text resolutely refuses to display in the custom web font, and shows only as Times.
I’ve tried all combinations and I can’t get it to play nicely. Help!
This is a simple case of over-specificity. You’ve styled the list as
class=“BodyText” but in the stylesheet it is defined as “p.BodyText” so it
can never affect the list, only the paragraph tags. If your style were just
“BodyText”, then it would work.
–
Ernie Simpson
On Wed, May 22, 2013 at 2:52 AM, Heather Kavanagh email@hiddenwrote:
Hi
I seem to have a persistent style issue I can’t resolve easily. At the
bottom of the page linked to, there’s an inline two-cell table. I created
it to hold make a two-column list of useful links.
The text in each cell has been styled using the same style as the rest of
the page, but has had the list attribute applied. The problem is this text
resolutely refuses to display in the custom web font, and shows only as
Times.
I’ve tried all combinations and I can’t get it to play nicely. Help!
Fwiw - I think a list is a better choice… it’s semantically meaningful in
the way you are using it.
If you want to style the list appearance, here’s a better approach:
Don’t style your paragraph text with a class style – put the BodyText
properties into the p tag, then you don’t need to do anything to your
paragraphs - just leave them unstyled.
Now you can be free to use the BodyText style just for the list. While a
list style can affect most of your text requirements, the only way to style
things text margins (before and after) is to create a custom style for the
list items - “.BodyText li” would accomplish that.
–
Ernie Simpson
On Wed, May 22, 2013 at 3:48 AM, Heather Kavanagh email@hiddenwrote:
On 22 May 2013, at 08:47, Ernie Simpson wrote:
If your style were just
“BodyText”, then it would work.
Aha! Thanks Ernie!
To be honest, I’m not sure why I’ve used a list anyway. I think I’ll
revisit using a normal paragraph style to remove the spacing.
Cheers
Heather
PS Do you ever sleep? What time is it where you are?
Imagic Design * Good Design - No Compromise
email@hidden http://www.imagic-design.co.uk
Twitter @Imagic-Design
T: 01634 864017