As shown in the figure: the "Coverage" section remains right-aligned in the table without affecting the centered display of the text in the table.
Tried adding a float to the coverage but that would push the words next to it, and if both are floated I don’t know how to center them. Please give me some advice
You can use positioning, for example
<!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> div { position:relative; border:1px solid red; width:200px; height:40px; line-height:40px; font-size:20px; text-align:center; } span { position:absolute; right:10px; top:0; } </style> </head> <body> <div> 123<span>span</span> </div> </body></html>
Thank you very much!