Centralising text on a particular word on a line
I have three variables of text on one line, and I need the centre word to always be central, no matter how long the flanking words are on either side. I have tried various html tags, but they seem to put the text on a new line or centralise vertically instead.
I have tried:
<center> text </center>
<div style = "text-align: center"> text
<p> text </p></div>
<p style = "text-align: center"> text </p>
Any help would be greatly appreciated!