jeffrey morin wrote:
> hello everyone,
>
> i have a box with 4 paragraphs in it. one paragraph has nothing but a link
> which is 2 words long. my question is can i apply tex-align: right to that
> link somehow without adding another class in my code.
>
> i tried #divBox p a:link {text-align: right} and i tried #divBox a
> {text-align: right} neither of those worked though. does anyone have a
> solution
text-align specifies how child elements (including anonymous text boxes) will
be
placed. Setting text-align on a link will try to align the text within the link
with the link's box which won't do anything unless the link's box is larger
than
the text.
You'll want to put the text-align property on the container of whatever you
want
to align. In this case, on the paragraph. Then, everything within the
paragraph will be right-aligned.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/