View Single Post
Old 06-22-2026, 10:35 PM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 53,989
Karma: 182150291
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BillPearl View Post
This finally fixed the issue for me.

/* Better way to centre */
.center {
text-align:center;
width: 60%;
background: yellow;
margin-right: auto;
margin-left:auto
}
Use: <p class="center">

Check out https://pigsgourdsandwikis.blogspot....-ereaders.html
Since earlier RMSDK did not implement the margin left/right auto technique for centering, you would need to use (100-60)/2 to give a 20% left and right margin. Note that unless your text/image fills the 60%, it is likely to left align inside the 60%.

Code:
.center {
text-align:center; 
width: 60%; 
background: yellow; 
margin-right: 20%; 
margin-left:20%;
}
DNSB is online now   Reply With Quote