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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:46:54+00:00 2026-06-08T16:46:54+00:00

I have this simple css layout at the heart of my problem: The leftside

  • 0

I have this simple css layout at the heart of my problem:

enter image description here

The leftside is set to float:left and a width of 70%, the right is set to float:right and a width of 30%.
However this leaves me with a gap where they don’t quite touch like i need them too:

enter image description here

To solve that i can change the percentages to 70.1% and 30%. which means most of the time the gap is gone but occasionally the rightside gets pushed down below the leftside which is no good!

I tried setting the width of the rightside to auto and it pushed the rightside down again but looked like this:

enter image description here

Then i tried getting rid of the the float:right on the rightside. Which ALMOST works except the register_container dropped all the way down to the bottom even though the rest of the divs (also inside of the rightside but listed after the register_container) sat on the right as they should:
enter image description here

Here’s a paste of my css, and here’s the site I have temporarily uploaded: http://greenevent.site50.net/index.php

If someone could help me solve my problem that would be great! (in case it’s not clear, i want the arrangement to look like the first website image posted but without the thin gap.)

  • 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-08T16:46:56+00:00Added an answer on June 8, 2026 at 4:46 pm

    Switch your float: right; to float: left; on your right container. You need to assign a width to the container as well.

    There is a bug in webkit browsers that means you don’t get 100% at times which can be a bit of a pain.

    http://jsfiddle.net/spacebeers/Lyphr/2/

    If you change the width on your right container to 27% in Chrome’s dev tools you get the layout you’re after.

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

Sidebar

Related Questions

I have a simple 2 colum layout (left col fixed width 200px, and right
Pulling my hair out with this simple CSS layout. I have a 2-column fixed
This simple HTML5 layout is intended to have a navigation bar on the left
I have a simple 2-column CSS layout with floated divs. The LEFT column has
i have this simple layout css which provide 3 rows layout css code <style
This is probably a basic html/css question... I have a simple one-button form that
I have this simple code, using Joda-time. Works fine, but I have a problem.
Let's say I have a simple CSS layout and my menu is a column
I have this simple Layout in my page <div id=content-wrap> <form id=form1 runat=server> <asp:ScriptManager
I have a pure CSS layout with a simple container that houses my text.

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.