OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: RE: [docbook-apps] Re: Getting space between TOC and body text?


>----- ------- Original Message ------- -----
>From: scott@intercore.net
>To: docbook-apps@lists.oasis-open.org
>Sent: Wed, 28 Apr 2004 14:26:49
>
>
>
>-----Original Message-----
>From: news [mailto:news@sea.gmane.org] On Behalf Of
>Steinar Bang
>Sent: Wednesday, April 28, 2004 12:20 PM
>To: docbook-apps@lists.oasis-open.org
>Subject: [docbook-apps] Re: Getting space between
>TOC and body text?
>
>
>>>>>> "Sina K. Heshmati" <sina@khakbaz.com>:
>
>> From: "Steinar Bang" <sb@dod.no>
>
>>> Is it possible to get some space between the
>navigational ToC and the
>
>>> body text in HTML generated using DocBook
>Website 2.5.0?
>[snip!]
>> You can define the occurrence of 'p' and 'li'
>elements in CSS. Add the
>
>> following fragment to your CSS stylesheet.
>
>> p, li {
>>   font-size: 95%;
>>   margin-left:10px;
>>   margin-right:0px;
>>   text-indent:0px;
>>   }
>
>> 'margin-left' is what you have to modify. Note
>that, if 'p' and 'li' 
>> elements are already defined in you CSS
>stylesheet, you can easily 
>> append 'margin-left:10px;' to their declaration
>and ignore others.
>
>Thanx!  I now have this in my style sheet:
>
>p {
>  margin-left: 10px;
>}
>
>p.navtoc {
>  margin-left: 0px;
>}
>
>I had to add the latter one to avoid indenting the
>navtoc as well. I'm
>pondering whether to leave <h1> and <h3> headers
>where they are, because
>they actually look pretty good there, and are
>clearly set off from the
>body text.
>
>I'm also pondering what to do about the <dd>
>elements of RSS news
>entries. 

Your rss items appear as children of a 'div' element with 'rss' class.

>
>Out of curiosity: why did you add <li> to the list
>of elements to be
>indented?  The <li> elements of my pages look OK
>where they are...?
>
I did that in my own CSS stylesheet, because it makes sense for a list item to have a 10px margin.
>
>> Norm specifies a spacer image (using XSL, e.g. in
>your 'tabular.xsl') 
>> in a table 'td' along with a 'width' attribute.
>Having said that, the 
>> usage of CSS when the result is identical to what
>XSL performs is 
>> always the superior solution.
>
>Sounds like it.  Especially considering the above
>alternative.
>
>Thanx again!
>
>Network Consultant Los Angeles
>http://www.InterCore.net
>
>Exchange Consultant Los Angeles
>http://www.Avidware.com
>
>Jewish Online Dating Service
>http://www.Jdatw.com
>
>Americas Best Dating Service
>http://www.AboutSingles.net
>
>Free Online Dating Service
>http://www.AllAboutSingles.com
>
>Online matching service
>http://www.matchmakor.com
>
>
>- Steinar
>
>
>To unsubscribe from this list, send a post to
>docbook-apps-unsubscribe@lists.oasis-open.org, or
>visit
>http://www.oasis-open.org/mlmanage/.
>
>
>To unsubscribe from this list, send a post to
>docbook-apps-unsubscribe@lists.oasis-open.org, or
>visit http://www.oasis-open.org/mlmanage/.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]