drop caps in first paragraph? aligning images?

View: New views
2 Messages — Rating Filter:   Alert me  

drop caps in first paragraph? aligning images?

by Robert Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a way in docbook to mark your text in your chunked HTML
output so that the first letter of the first paragraph in a chapter
will use dropcaps (through a css class, I mean)?
(Here's a css way to do it http://tinsology.net/2009/06/css-drop-cap-effect/ )

I see that you can set image alignment for graphics inside imagedata
http://www.sagehill.net/docbookxsl/ImageAlignment.html

However, I see that doing that will insert a  style="text-align:right"
into the div element. I don't understand; why does text-align: right
apply to the img element as well?  (this may be a CSS question, not a
docbook question).

   <div class="mediaobject" style="text-align: right"><a
xmlns:saxon="http://icl.com/saxon" id="MilenaJesenska"/><img
src="images/milena.jpg" style="text-align: right" alt="Milena
Jesenska, journalist and girlfriend of Kafka who corresponded with him
frequently."/></div>



Robert Nagle

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Parent Message unknown RE: drop caps in first paragraph? aligning images?

by Robert Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just wanted to say, I figured out the answer to my own question.

http://docbook.org/tdg5/en/html/phrase.html

Specifying a role attribute for phrase gives you a custom css class
inside a span tag. So I could just do

<para><phrase role="dropcap">W</phrase>e the people </para>

Gosh, knowing this information, I suddenly feel a exhilarating surge
of power....

This also solves the image problem-- (I wanted to make css
customizations to selected images; now I can just put the
inlinemediaobject inside a phrase tag).


rj


*********************************

Is there a way in docbook to mark your text in your chunked HTML
output so that the first letter of the first paragraph in a chapter
will use dropcaps (through a css class, I mean)?
(Here's a css way to do it http://tinsology.net/2009/06/css-drop-cap-effect/ )


--
Robert Nagle
12777 Ashford Point Dr #1417
Houston, Texas 77082
713 893 3424
htpt://www.robertnagle.info

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...