WordPress.org

Ready to get started?Download WordPress

Forums

How to center a footer in CSS? (3 posts)

  1. scapegoat
    Member
    Posted 5 years ago #

    Hey everyone, I'm in my first two weeks of using wordpress, and am currently modifying a theme. I have a goal to finish this site by the end of next week, but at the moment I am stuck on the footer.

    /*	##################################
       	FOOTER
    	################################## */
    
    #footer-wrap {
    	background: url(img/bg-footer-wrap-blue.png) repeat-x left top;
    	width: 960px;
    }
    
    #footer {
    	width: 960px;
    	margin: 0 auto;
    }
    
    #footer p {
    	margin: 0px;
    	padding: 0px;
    	line-height: 40px;
    }
    
    #legal {
    	float: left;
    	width: 450px;
    }
    
    #webdemar {
    	float: right;
    	width: 450px;
    	text-align: right;
    }

    That is all of my footer. But what can I pop in there to center? Thanks!!

  2. drewactual
    Member
    Posted 5 years ago #

    just go with margin: auto, get rid of the 0

  3. scapegoat
    Member
    Posted 5 years ago #

    unfortunately, that didn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags