Pages: 1
Print
Author Topic: Formatting Step Numbers in WebHelp  (Read 720 times)
pwonson
Member

Posts: 1


« on: March 20, 2011, 11:47:34 AM »

Xmetal Enterprise 6.0

I am trying to make my numbers in steps bold and a different font weight.

I can do this by changing for example .stepexpand span to bold but the step results are outside the scope of the span and also get changed.

So I moved on to trying to reset the style in my custom.css for order lists. However the following code adds an additional number with the correct formatting:

ol, .ol { list-style: decimal; counter-reset:step 0; }
ol li:before, .ol li:before{counter-increment:step; content:counter(step) "."; font-weight:bold;}

Results look like:

1. 1. the text of step one. the results of step 1
2. 2. the text of step two. the results of step 2

I am sure this is an easy fix :D
Logged
jgrey
Member

Posts: 37


« Reply #1 on: March 21, 2011, 09:06:08 AM »

would wrapping the stepresult text in a different tag (maybe a < p >  or < lines > a make a difference?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1546



WWW
« Reply #2 on: March 21, 2011, 05:19:44 PM »

All you should need to do is change "decimal" to "none".

However, that assumes that you can rely on all of the browsers the people will be viewing your content with support the pseudo-element ":before" and the other necessary properties for it. You might wish to check that at a site that specializes in CSS and browser support. From what I can tell, as long as your readers aren't using IE you should be OK. People with versions of IE up to and include version 7 will likely see a list with no numbers (so you'd probably want to employ one of the hacks that allows IE to use less fancy CSS while having all other browsers use your fancy version).

(search for ":before")
http://www.quirksmode.org/css/contents.html
http://kimblim.dk/css-tests/selectors/
« Last Edit: March 21, 2011, 05:37:22 PM by Derek Read » Logged
Pages: 1
Print
Jump to:  

email us