View Single Post
Old 01-06-2026, 05:16 AM   #3
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 331
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
I don't think float can take the value 'center'. But you can achieve the result you want by putting the line concerned in a <p> with a class defined as 'center' and then within that <p>, using spans to float your words left or right.

For example:

Code:
<p class="center"><span style="float:left">lorem</span>ipsum <span style="float:right">dolor</span></p>
where the CSS stylesheet defines:

Code:
p.center {text-align: center;}
Or use a table, as Karellen suggests.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-01-06 at 21.39.39.png
Views:	41
Size:	404.5 KB
ID:	220118  

Last edited by philja; 01-06-2026 at 04:44 PM.
philja is offline   Reply With Quote