InternetDummie
New member
I am a relatively new programmer and I have stumbled upon a problem I just can't get my head round.
I know how to center text with text-align or margin:auto etc... but the problem I am having is that my text is the result of a php query (echo $somethingorother).
My HTML is centering the PHP query, but then the text is displayed, starting just to the left of center and continuing off to the right. I have tried padding into the correct position, but since the length of the php query changes for different pages, on some page it is central and some not.
Can anyone help me?? Thanks
I know how to center text with text-align or margin:auto etc... but the problem I am having is that my text is the result of a php query (echo $somethingorother).
My HTML is centering the PHP query, but then the text is displayed, starting just to the left of center and continuing off to the right. I have tried padding into the correct position, but since the length of the php query changes for different pages, on some page it is central and some not.
Can anyone help me?? Thanks