Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4611708
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:18:15+00:00 2026-05-22T01:18:15+00:00

Am trying to create a cross-browser 3 column footer that are equal in width

  • 0

Am trying to create a cross-browser 3 column footer that are equal in width to each other, but doesn’t go beyond the main body width of 900px. This code isn’t doing it??

html
<div id="footer">
    <p class="left">About<br />Contact<br />Next line here</p>
    <p class="right"> does not evaluate or guarantee the accuracy</p>
<p class="centered">Terms<br />Privacy<br />Disclaimer</p>
</div>

css
 #footer  {
  color: #ffffff;
  width:100%;
  background: #111;
  clear: both;
  overflow: auto;   
   } 

.left {
text-align:left;
float:left;
}

.right{
float:right;
text-align:right;
}

.centered{
text-align:center;
}  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:18:16+00:00Added an answer on May 22, 2026 at 1:18 am

    The easiest solution I can see, with your current mark-up, is:

    #footer {
        width: 900px;
    }
    #footer > p {
        width: 30%;
        display: block;
        float: left;
    }
    
    p:nth-child(odd) {
        background-color: #ccc;
    }
    

    JS Fiddle demo.


    Edited to suggest a slight revision, as your footer div appears to be a list of links to other content, I’d suggest amending your mark-up, with the following as a suggested guide:

    <div id="footer">
        <ul>
            <li>menu one
                <ul>
                    <li>About</li>
                    <li>Contact</li>
                    <li>Next line here</li>
                </ul></li>
            <li>menu two
                <ul>
                    <li>Does not evaluate, or guarantee the accuracy</li>
                </ul></li>
            <li>menu three
                <ul>
                    <li>Terms</li>
                    <li>Privacy</li>
                    <li>Disclaimer</li>
                </ul></li>
        </ul>
    </div>
    

    And the CSS:

    #footer {
        width: 900px;
        overflow: hidden;
    }
    
    #footer > ul {
        width: 100%;
    }
    
    #footer > ul > li {
        width: 30%;
        display: block;
        float: left;
        font-weight: bold;
    }
    
    #footer > ul > li > ul {
        font-weight: normal;
    }
    

    JS Fiddle demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've spent some time trying to find an elegant and cross browser solution but
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Trying to create a user account in a test. But getting a Object reference
Trying to create my first iPhone app that would play back audio. When I
Trying to create a small monitor application that displays current internet usage as percentage
I encountered a weird problem when trying to write a cross-browser script. Basically my
So I'm trying to create a C# WCF REST service that is called by
We are trying to create a RESTful API that will be hosted on server
I'm trying to build a grid the size of the browser window that has
I'm trying to extract values from xml using jQuery in a cross-browser compatible fashion.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.