Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Website development question of footer?

I am making a wordpress site. The theme I am working with has footer expanded throughout the browser width for example see this website's footer:

http://stackoverflow.com/

What I am looking for is a footer aligned with the body in the center position just like the footer of yahoo answers website.

Any idea how to accomplish it?

See this forum thread for details:

http://wordpress.org/support/topic/footer-is-not-c...

Thanks.

Update:

@arus.geo : That would align the text within the footer. But will it align the footer as a whole in the middle position?

ps: I was able to decrease the footer width, just the footer alignment with the center is not happening. I have no problem with the footer text.

4 Answers

Relevance
  • 9 years ago
    Favourite answer

    Here's how I would do it;

    Maker sure these elements are not inside of your wrap/container.

    <div class="footerStretch">

    <div class="footer wrap">

    any content inside of this div will be aligned with the rest of your body presuming you've centered everything in your body with a wrap/container with margin: 0 auto;

    </div>

    </div>

    css;

    .wrap {

    margin: 0 auto;

    width: (anything) ex : 900px;

    }

    .footerStretch {

    width: 100%;

    height: (anything);

    background: (anything ex: #000;

    }

    .footer {

    width: 900px;

    }

    if you don't have a clue what i'm on about, pop me an email on; me@peterallen.me.

    I'd be happy to explain further :)

  • 9 years ago

    You can use WP themes with such footer-aligned-with-body design. It's the better way to accomplish your style.

    If you want to use the existing theme, you have to modify the appropriate codes in footer.php & style.css files, which is a bit complex for so many users.

  • ?
    Lv 4
    5 years ago

    Photoshop isnt precisely used to create web pages. it really is a pro image enhancing application and is often used even as coming up pictures and photographs for web pages. A programming language is code the position a human writes a set of regulations and the computing gadget breaks them down (compiling) and executes them. HTML and javascript are 2 programming languages for web site layout even as java and C or C++ are 2 favourite programming languages that are used in many of the application you take advantage of on your computing gadget. (i imagine residing house windows is written with C++ yet im no longer particular) i comprehend that snow fall writes their computing gadget video games with C++. There are courses that are used to create web pages mutually with dreamweaver and that i imagine it fairly is owned by adobe the business enterprise that makes photoshop.

  • 9 years ago

    <div style="text-align: center"> your content goes here </div>

Still have questions? Get answers by asking now.