1 reply [Last post]
jahur
jahur's picture
Offline
newbie
Last seen: 10 years 15 weeks ago
Timezone: GMT+6
Joined: 2012-10-21
Posts: 1
Points: 2

I am trying to develop a wp theme. But a problem arise with the footer.
I have uploaded the theme in my testing server.
wp-site(dot)co(dot)cc

Here footer area comes into left side, just beneath the sidebar. But I have created separate footer.php file and div for it.

I want to set my footer part at bottom of the theme.

Please take a look at the codes below.

This is the footer.php

<div id="footer">
    <span> This footer . All right reserved. </span>
    </div>
    <?php wp_footer(); ?>
    </body>
    </html>

In style.css

#footer { height: auto;
    width:100%;
    }

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 48 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

You have floats, which

You have floats, which require additional fiddling.

#footer {
    clear: both;
    height: auto;
    width: 100%;
    }

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.