I've a banner which is added to a page using the following code <?php if (function_exists(show_rotator())) { show_rotator(); } ?> but this does not center align the banner on the page, instead it left aligns, take a look: http://nicheblogsales.com/banner-rotator/ Its the flashing left aligned banner which I want to align as per the static one just above it. Anyone know what code I need to add to make it do this?
Hi, You can write this code <?php print "<center>"; if (function_exists(show_rotator())) { show_rotator(); } print "</center>"; ?> Thanks,
You can not center anything in PHP, centering is part of styling which is done using either html or css. Next time just use the html <center> Your code here </center> above and below your code.