How to center my footer

6 replies
www.pinklilies.org is under development and Ive been trying to get my footer to be centered yet its proving a little hard to do. Can someone help me?
#center #footer
  • Profile picture of the author Anthony K
    well I cant find scauto in my foot code :S this is my code as is seen in my footer.php

    <div class="clear"></div>
    </div> <!-- end content -->

    <div id="footer">

    <?php
    global $getoption;

    if ( $getoption['footerText'] )
    echo htmlspecialchars_decode( do_shortcode( $getoption['footerText'] ) );
    ?>

    <?php
    // Footer widgets - Only displayed when it has widgets
    if ( is_active_sidebar('footer-widgets') ) {

    echo '<div id="footer-cols">';
    dynamic_sidebar( 'Footer' );
    echo '</div>';

    }
    ?>

    </div> <!-- end footer -->

    </div> <!-- end wrapper -->

    <?php if ( $getoption['prettyPhoto'] == 1 ) { ?>
    <script src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js" type="text/javascript" ></script>
    <?php } ?>

    <script src="<?php bloginfo('template_directory'); ?>/js/script.js" type="text/javascript" ></script>

    <?php
    wp_footer();

    echo htmlspecialchars_decode( $getoption['analytics'], ENT_QUOTES );
    ?>

    </body>
    </html>
    {{ DiscussionBoard.errors[4000718].message }}
  • Profile picture of the author zach1988
    why u have to do it using php? u can easily do it using css
    {{ DiscussionBoard.errors[4001664].message }}
  • Profile picture of the author addy john
    Setting the Header Page Occurrence

    Specify the pages on which a header appears using the occurrence attribute of <ctheader>. For example, if you want a header to only appear on even-numbered pages, you can use the following tag:
    <!--<ctheader occurrence="even"><p>This is an even page.</p></ctheader>-->
    Acceptable values for the occurrence attribute include: all, allbutfirst, odd, oddbutfirst, and even.
    Highwire supports multiple headers, each with different occurrence settings. For example, you can define one header that occurs on odd pages and another header that occurs on even pages.
    Setting Header Margins

    Because the header is placed in the top margin of the page, that margin must be big enough to contain the header. If the margin isn't big enough and the header is cut off, you can change the page's top margin. For more information, see Document Margins.
    Header margins control the position of the header within the page's top margin. Header margins do not affect the page margins. To change header margins, use the style attribute of <ctheader>, which supports the following styles: margin, margin-left, margin-right, and margin-top. For example, the following code defines a header with a margin of 2 inches on the sides:
    <ctheader style="margin-left:2in;margin-right:2in">My Header</ctheader>
    Change the margin size by replacing 2in with another size definition (such as 72pt). Size definitions require a number followed by a unit of measurement. Valid units of measurement include: in, cm, mm, px, pc, pt, em, and ex. The default header margin is .25 in.
    {{ DiscussionBoard.errors[4002049].message }}
  • Profile picture of the author addy john
    Click on the "Tools" menu and select "Options".
    Click the "Under the Bonnet" tab, locate the "Privacy" section and click the "Clear browsing data" button.
    Select "Delete cookies and other site data" to delete all cookies from the list (alternatively, you can remove all cookies created within a specific time period by selecting the period you want from the dropdown list).
    Select "Clear browsing history" to delete traces of which websites you've visited.
    Select "Clear download history" to delete records of which files and programs you've downloaded.
    Select "Empty the cache" to delete cached website pages.
    You can also delete saved passwords (which log you into websites) and saved form data (such as your name and address).
    Then click on the "Clear browsing data" button.
    Click on the Close button when you've finished.
    {{ DiscussionBoard.errors[4002077].message }}
  • Profile picture of the author Jake Gray
    <center> </center>

    {{ DiscussionBoard.errors[4004945].message }}

Trending Topics