An HTML question

by "Octavian Rasnita" <orasnita(at)home.ro>

 Date:  Fri, 25 Oct 2002 15:02:27 +0200
 To:  "HWG" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Hi all,

I want to put some HTML code in an <div> block, to put that block in the
middle of the page (center aligned) but to align the text from that block to
the right of the block.

I've tried to use:

<div style="text-align: center;">
<div style="text-align: right;">

...

but the text is right aligned to the margin of the screen, not to the margin
of the  first <div> block.

I want the first <div> block to be as wide as the text from it.


Thank you for any tips.

Teddy's Center: http://teddy.fcc.ro/
Email: orasnita(at)home.ro

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA