Horizontal centre align image within cell
-
Hi,
I am trying to add an image to the bottom of a table in order that it can be used as a button.
I have managed to get the image in place and working as a hyperlink but I am having trouble aligning the button centrally. This is the code I am using to display the button.
“<img src=”http://www.exampleurl.com/wp-content/uploads/2014/03/button.png” alt=”button”/>“
I have tried adding text-align:center and align:middle but neither is working.
I realise I could create another cell and edit the css to align it centrally but I don’t like the spacing when it is done this way and also am unsure which css file the code is in.
Any help you can provide will be much appreciated.
Regards
Rowley
The topic ‘Horizontal centre align image within cell’ is closed to new replies.