# Text align

**URL:** <https://forum.kirupa.com/t/text-align/164249>\
**Category:** Uncategorized\
**Created:** [September 29, 2005, 3:53pm UTC](https://forum.kirupa.com/t/text-align/164249 "2005-09-29T15:53:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Desi](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Desi](https://forum.kirupa.com/u/Desi)\
**Post date:** [September 29, 2005, 3:53pm UTC](https://forum.kirupa.com/t/text-align/164249/1 "2005-09-29T15:53:57Z")

</div>

I’m trying to have in the same line a \<p\> with align left and other with align right:  
p {  
display: inline;  
text-align:left;  
}

p.final {  
display: inline;  
text-align:right;  
}

but it isn’t working, maybe because the div in which that \<p\> are have:  
margin-right:auto;  
margin-left:auto;

???
