Previous Message
Next Message

Re: [css-d] Right adjust last word in a paragraph

Sent by Joel Goldstick \ on 16 January 2003 15:03


.....
>     knegt. Van al de kleine, of minder Knegten. Vande Borstbanken.
>     Vande Kruishouten. Van het Schand-deksel. Vande Poorten. Vande
>     Pompen. En ook vande Stutten onder de Balken.         Pag. 113
>
> My problem here is to get the page number right adjusted and on the last
> line of the paragraph.
>
> It is more important that the solution should be standards compliant
rather
> than working with every current browser.
>
>
> Lars Bruzelius
>
Since the text is in a paragraph (a box), I think you can put your end text
inside a div and then position it relative to the paragraph with bottom and
right set to 0.

<p>blah blah blah....<div class="pagenumber">page 6</div></p>

div.pagenumber {position: relative; bottom: 0; right: 0; text-align: right;
margin: 0; padding: 0;}

I just tried this, and it seems to do what you want.  However it sits a
little low.  The margin and padding didn't seem to do anything for me in ie6

Joel Goldstick
Previous Message
Next Message

Possibly related: