View Single Post
Old 03-18-2013, 06:26 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
According to the specs, auto margins are free to interpret. That results into the fact that this does not work in ADE as desired and expected. The problem is, that centering is only applied to the inline elements. What you can try is the following:

In your stylesheet:
Code:
.wrap {text-align:center}
.center {text-align:center; width: 60%; display:inline-block}
.centerleft {text-align: left; width: 60%; display:inline-block }
In your code:
Code:
<div class="wrap">
<p class="center">Here is some text that should be centered</p>
<p class="centerleft">Here is text that is left aligned in the center. As you can see this is quite nifty.</p>
</div>
I expect that the 'centerleft' example is what you are looking for.
Toxaris is offline   Reply With Quote