WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Centering a image in the footer (6 posts)

  1. guitarevan
    Member
    Posted 5 years ago #

    Hello,

    I have been searching for another post to help me but I have not found one talking about images.

    I put a image from Paypal in my footer but it automatically goes to the left side. The text below it is centered so it looks kind of strange.

    Is there anyway I can center this image? I am a newbie so this is kinda above me at the moment.

    This site is http://lembkeproductions.com

    Thanks in advance for any help that you can give me!

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try adding the following to the bottom of style.css:

    #footer table img {margin:0 auto}

    You'd really be a lot better off without all of that table markup just for one image, though.

  3. guitarevan
    Member
    Posted 5 years ago #

    Thanks! I inserted the line of code in my style.css and removed all the extra html markup.
    Unfortunately, now neither my image nor my text is centered.

    Thoughts?

  4. Ben Sutcliffe
    Member
    Posted 5 years ago #

    Try this in style.css

    #footer {
        text-align:center !important;
    }

    The center will send all of the content to the middle of whichever width the footer is, so you may need to make the width of the footer 800px or whichever size you need.

    I've made it !important in case the PayPal script (if it's scripted) tries to send it to the left.

  5. figaro
    Member
    Posted 5 years ago #

    Find the following in style.css:

    /* Body */
    * {margin:0; padding:0;}

    and change it to this:

    /* Body */
    * {padding:0;}
  6. guitarevan
    Member
    Posted 5 years ago #

    Thanks figaro! That did it!

Topic Closed

This topic has been closed to new replies.

About this Topic