By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,016 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,016 IT Pros & Developers. It's quick & easy.

centering text then right-aligning the block

P: 1
I need to center the text in a div within its natural width (ie the width of the longest line) and then place that div on the RH side of the window.

<div id="#ident">
<div id="#address">
much longer stuff<br>
more stuff

div#ident { text-align:right; }
div#address { text-align:center; }

but all this does is center the text and ignore the right-align. How do I get divs to become context-sensitive (commutative) instead of absolute?
Oct 11 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.