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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:02:08+00:00 2026-06-09T12:02:08+00:00

Is this possible with css (I can probably manage it with javascript): Its basically

  • 0

Is this possible with css (I can probably manage it with javascript):

Its basically a margin: auto effect, but i want a different background for each margin, so i’m looking for divs with auto-widths on either side of the (fixed-width) center div if that makes sense. Probs better visualized:

Sample layout

  • 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-09T12:02:09+00:00Added an answer on June 9, 2026 at 12:02 pm

    http://jsfiddle.net/guc9V/1/

    Bit of a hack but it works.

    I didn’t use your width value as jsFiddle would need resizing to see how it works.

    This essentially tells the divs to act as table-cells, so they will fill the containing div, which acts as the table. If you didn’t specify the width of the middle div, each column would be 33% wide.

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

Sidebar

Related Questions

I have a feeling that this probably is not possible using strictly CSS, but,
Okay, I know that 1) this is probably not possible with CSS alone and
Is this possible using CSS only? I can't find a definitive answer anywhere! It's
Possible Duplicate: Two css files defining same class The answers to this question and
Possible Duplicate: How does this CSS triangle shape work? Please help me i need
Is it possible to use @import in one css file like this. @import file1
Possible Duplicate: Is there a CSS parent selector? Is there some kind of .this
Possible Duplicate: What characters are valid in CSS class names? Don't if this is
Is this possible? My code works on Firefox. I can also get webkit to
This is probably impossible but I have to ask. Lets say I have a

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.