TinyPortal

Development => Support => Topic started by: dbailey on May 08, 2010, 09:19:12 AM

Title: How to align php block code
Post by: dbailey on May 08, 2010, 09:19:12 AM
I have entered some php code into a block to allow a gallery image to show on my front page which is successful.
The problem I am having is aligning it to the center of the block.

Does anyone know what code I would need to add to the php code to align please.
Title: Re: How to align php block code
Post by: Freddy on May 08, 2010, 11:23:03 AM
You could wrap it all in a DIV...

<div style="text-align:center">

...image stuff goes here...

</div>


Obviously that's HTML so you would need to echo it out with the rest of your HTML.