Naveed786 Posted August 2, 2020 Share Posted August 2, 2020 (edited) Dear All, Hope all are fine. Need one hep to align the logo in the center of the footer. I tried align = Center but didn't help, please see below code ad advise. <div class="image"> <img src="images/icon/logo.jpg" alt="John Doe"/> </div> Kind Regards, Naveed. Edited August 2, 2020 by Naveed786 Quote Link to comment https://forums.phpfreaks.com/topic/311265-need-help-to-align-the-logo-in-center-of-footer/ Share on other sites More sharing options...
jodunno Posted August 2, 2020 Share Posted August 2, 2020 use css but don't ask me why the techies name it text-align instead of content-align or something more inclusive. <style>.image { text-align: center; }</style> <div class="image"> <img src="logo.jpg" alt="John Doe"/> </div> 1 Quote Link to comment https://forums.phpfreaks.com/topic/311265-need-help-to-align-the-logo-in-center-of-footer/#findComment-1580272 Share on other sites More sharing options...
Naveed786 Posted August 2, 2020 Author Share Posted August 2, 2020 1 hour ago, jodunno said: use css but don't ask me why the techies name it text-align instead of content-align or something more inclusive. <style>.image { text-align: center; }</style> <div class="image"> <img src="logo.jpg" alt="John Doe"/> </div> Thanks jodunno, it worked perfectly much appreciated your help and time. Kind Regards, Naveed. Quote Link to comment https://forums.phpfreaks.com/topic/311265-need-help-to-align-the-logo-in-center-of-footer/#findComment-1580280 Share on other sites More sharing options...
StevenOliver Posted August 4, 2020 Share Posted August 4, 2020 (edited) Jodunno's answer is correct. However, because I'm a lazy typer, I use an old-school hack (not real css, but works!): <div align="center"> I'm centered </div> ... or, better yet: <?php echo '<div align="center"> I'm centered </div>'; ?> That way, your post won't be in the wrong place, as this is a "PHP coding help" forum 😀 Edited August 4, 2020 by StevenOliver Quote Link to comment https://forums.phpfreaks.com/topic/311265-need-help-to-align-the-logo-in-center-of-footer/#findComment-1580340 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.