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

  • Home
  • SEARCH
  • 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 8656167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:12:45+00:00 2026-06-12T15:12:45+00:00

Good Morning, I am developing a four column footer using pure CSS, but I

  • 0

Good Morning,

I am developing a four column footer using pure CSS, but I have ran into some issues:
1) I can’t institute a vertical 1px white rules alongside each colum
2) The background does not cover the entire four colums
3) In Chrome, the columns do not appear across a single width, the fourth one being bumped below.

Here is my code: http://jsfiddle.net/eLzPk/

  • 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-06-12T15:12:46+00:00Added an answer on June 12, 2026 at 3:12 pm

    If you know the exact width of the footer you can do this with pure css. I just added a right border to the first 3 columns. FYI you forgot to declare the color of the border in your css. I also changed the width of the columns to 235px which is 940 / 4. First 3 have a 1px border so it’s width: 234px plus the border. Here is the fiddle http://jsfiddle.net/eLzPk/7/

    #footer dl {
        background: black;
        float: left;
        margin: 0;
        padding: 10px 0 5px 0;
        width: 234px;
        border-right: 1px solid #fff;
    }
    
    #footer dl + dl + dl + dl {
        width: 235px;
        border-right: none;
    }
    

    EDIT

    To further explain one of the problems with css is that with borders and margins are added to the declared width, so if you have four columns with a width: 25% and a border of 1px to create a dividing line, it’s actually 100% + 3px, which of of course larger than 100% so it causes the css to wrap.

    There are 2 new solutions to this in css, one of them is fairly supported, it’s called box-sizing, here is a good article to reference. http://css-tricks.com/box-sizing/ Basically it sizes the box to the declared width and adds the borders and margin inside of that. The downside is that it’s not supported by IE7 and back. So to use it properly it’s best to use an IE conditional statement and implement some css/js hack for just those browsers.

    The other solution is the flexbox model, and it has very little support yet. But it’s worth taking a look at. It allows you to have a container of any size, and size the children inside of it using ratios, to place them vertically or horizontally with ease, etc. It solves the box model issues as well as positioning and centering issues of all kinds.

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

Sidebar

Related Questions

Good Morning All! I have been developing a project for some time in which
Good morning. I've been having this issue for some days and have been lokking
Good morning gang. I have a jQuery Datepicker object that is prepoulated using a
Good Morning, i have some Trouble with the Zend Framework and Zend_DB_Select, i want
Good morning everyone, I'm running into an issue using a SharePoint workflow project (C#,
Good morning, I am in need of some advice, I am using a networkStream,
Good morning/afternoon/evening, Internet. I am currently developing a wap game and have encountered a
Good morning. As the title indicates, I've got some questions about using python for
Good morning, I am currently developing a java web application that exposes a web
Good morning, I have mysql queries where I would like to calculate percentage of

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.