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 8065569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:42:34+00:00 2026-06-05T11:42:34+00:00

I started out from this sample CSS template that provides a sticky footer with

  • 0

I started out from this sample CSS template that provides a sticky footer with a centered 3 column faux layout. The 2 side columns are fixed width and the main content is supposed to be shrink wrapped to fit the size of its content, but instead is stretching to the max-width value defined in the CSS for the wrapper. The main content is stretching out because the CSS doesn’t contain any styles which cause shrink wrapping (i.e. “display:inline“, “display:inline-block“, “float:left“, “display:table“, “display:inline-table“, etc…). And lastly, the wrapper contains everything except the sticky footer.

I tried setting the wrapper with display:table to shrink wrap the main content, which it did, but now the footer which is outside the wrapper div, has incorrect width. It was previously matching its width the same way the wrapper was by defaulting to the max-width style it had set which matched the same max-width sytle on the wrapper. I’m no CSS expert, but also tried moving the sticky footer inside the wrapper using an alternate sticky footer technique, but then I had colliding CSS styles required for the faux columns with the styles required for having a sticky footer inside the wrapper. I don’t know maybe it can be done that way, but from my initial “quick” test, it got messy.

I would prefer not to size it with javascript and instead get it working with CSS if that’s possible. Any ideas with CSS?

And here’s a fiddle of it without adding the “display:table” to the wrapper CSS. Add that and then the problems begin.

  • 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-05T11:42:39+00:00Added an answer on June 5, 2026 at 11:42 am

    What you need is this: Perfect 3 column It will also resize as you want it with the broswer.

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

Sidebar

Related Questions

I have checked out code from a svn repository and started making changes. But
How can i find out if a C# App has been started from the
I've started out with a div box that contains a header within it. My
I started out with the Master-Detail application in XCode 4.2. It is my first
I just started out with Python and wanted to try out tornado. Running the
I just started out with jQuery and really only need it for some very
We have just started out with Team Foundation Server 2008 / Visual Studio Team
I have just started out with testing some php mvc framework In it, it
I just started out with a new site and I decided to use DOMImplementation
I just started out with C and have very little knowledge about performance issues

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.