Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2010
    Posts
    121
    Plugin Contributions
    0

    Default Centering the footer?

    Hi, could someone please tell me how to center the page footer? I've tried codes such as <center> and align:"center" .

    Here's the link to the site if required.http://oembargain.com

    Thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Centering the footer?

    Looks centered
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Centering the footer?

    Do you mean the footer, or the text "in" the footer? You have this

    <ul class="footer-links list-style-none float-right">

    which is moving the whole list to the right.

  4. #4
    Join Date
    Oct 2010
    Posts
    121
    Plugin Contributions
    0

    Default Re: Centering the footer?

    Sorry, I meant the text in the footer. I just changed it to
    <ul class="footer-links list-style-none float-center"> and now it's bearing closer to the left...

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Centering the footer?

    The text in that snippet is just classnames, not style rules, and there is neither a rule in the stylesheet for .float-center {} nor a valid property float: center; .

    What you have effectively done is delete the float-right class, which is good.
    The next thing to do is add to
    stylesheet.css (line 357)
    #navSuppWrapper {
    border-top: 2px solid #CECECE;
    margin: 25px 0 0;
    padding: 12px 0;
    text-align: center;
    }

    and change
    stylesheet.css (line 380)
    .footer-links li {
    display: inline;
    font: 11px verdana;
    margin: 0 2px 0 14px;
    }

  6. #6
    Join Date
    Oct 2010
    Posts
    121
    Plugin Contributions
    0

    Default Re: Centering the footer?

    Thank you very much, that worked great!

  7. #7
    Join Date
    Mar 2011
    Posts
    30
    Plugin Contributions
    0

    Default Re: Centering the footer?

    Not sure if I should start a new thread. Forgive and correct me if I am wrong. I am trying to figure the same thing out.

    Code:
    .footer-links li {
    	font: normal 11px verdana;
    	float: left;
    	margin: 0 2px 0 2px;
    	text-align: center;
    
    }
    
    #navMain ul li a, #navCatTabs ul li a {
    	text-decoration: none;
    	padding: 0em 0.5em;
    	margin: 0;
    	color: #ffffff;
    	white-space: nowrap;
    	}
    .legalCopyright {
    	float: left;
            text-align: center;
    	font: 11px verdana !important;
    	line-height: 16px !important;
    }

    If I take out the float left, both lines run together. The links and the copyright powered by zen cart lines.


    All help is appreciated.

  8. #8
    Join Date
    Mar 2009
    Location
    Niagara Ontario
    Posts
    135
    Plugin Contributions
    0

    Default Re: Centering the footer?

    the classes will inherit the properties of the element they belong to. i.e. if you have a 'footer div' with a 'text -align: center' you have it covered.

    many stylesheets begin with the Body element styled with 'text-align:center ' and then a webmaster need only apply "text-align:right or left " per child elements required.
    *so start out centered and avoid styling every cotton pickin' character in the page.* which causes great CHAOS in a page.
    Last edited by usr50; 12 Mar 2011 at 05:28 AM.

  9. #9
    Join Date
    Mar 2011
    Posts
    30
    Plugin Contributions
    0

    Default Re: Centering the footer?

    Quote Originally Posted by usr50 View Post
    the classes will inherit the properties of the element they belong to. i.e. if you have a 'footer div' with a 'text -align: center' you have it covered.

    many stylesheets begin with the Body element styled with 'text-align:center ' and then a webmaster need only apply "text-align:right or left " per child elements required.
    *so start out centered and avoid styling every cotton pickin' character in the page.* which causes great CHAOS in a page.
    I would like that to work but for now it doesnt. Will have to figure it out.

 

 

Similar Threads

  1. centering page loses footer
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jul 2011, 05:05 PM
  2. Centering Footer Text
    By sports guy in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 15 Mar 2011, 03:13 AM
  3. centering footer banner and copyright
    By hoygs740 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Dec 2010, 05:42 AM
  4. Replies: 1
    Last Post: 31 Dec 2009, 01:36 AM
  5. Vertically centering the text on the top nav bar
    By troikken in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Apr 2008, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg