Jump to content

Need Help to Align the logo in Center of Footer


Naveed786

Recommended Posts

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 by Naveed786
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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 by StevenOliver
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.