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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:29:12+00:00 2026-05-26T17:29:12+00:00

I am trying to make 3 floating divs – left, center and right with

  • 0

I am trying to make 3 floating divs – left, center and right with space (margin) between them.
for example:

div with 245px width, 6px space, div with 246px, 6px space, div with 245px (748px total).

the way I found to make it is:
container with 748px, floated left div, absolute positioned div with margin:0 251px; (245+6) and float right div.

it works (but not in IE6), so I want to know if there’s other way without using position absolute.
I dont want to use 3 floated left divs and the middle one with margin because when u zoom out the structure is not full width. (therefore u must use 1 floated left, and 1 floated right.)

Hope you understand and can help.

Thanks!

  • 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-26T17:29:13+00:00Added an answer on May 26, 2026 at 5:29 pm

    use this things in ur web page
    .mainDiv
    {
    width:748px;
    float:left;
    }
    .leftDiv{float:left;width:245px;padding-right:6px;}
    .centerDiv{float:left;width:246px;padding-right:6px;}
    .rightDiv{float:right;width:245px;}

    use this stysheet for ur div structure
    give class name as in stylesheet

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

Sidebar

Related Questions

I am trying to make a div that contains other floating divs to adjust
I'm trying to figure out a way to make three floating divs match the
Trying to make a floating css menu. How do I get the floating div
I am trying to display an absolutely positioned div inside floating div. Here is
I'm trying to make the background of my app have randomly floating bubbles. I've
Hi i'm trying to make a div within the front page of my site
Right now I'm trying make some browser based game. But I have little questions.
Revised I'm trying to make a Regex Expression that parsed floating point numbers. At
I'm trying to add a little space between lines to my TextViews using android:lineSpacingMultiplier
I am trying make long screen to vertical direction. So, I need a screen

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.