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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:47:31+00:00 2026-06-04T13:47:31+00:00

I am using CSS to float a div next to another one. This div

  • 0

I am using CSS to float a div next to another one. This div only appears if the user is looking at their own “business.” When I don’t clear anything, a large space appears between these divs and the next one. When I do clear the float, the text in the next div is pushed to the left. I think I am misunderstanding something about how to use the float and clear. I’m not very good with CSS.

How can I remove the space without destroying the “fs” div?

Here are pictures to show what is happening:

picture 1

picture 2

Here’s the CSS and HTML code:

div.stuff {
    border-bottom:dotted 1px;
    border-left:dotted 1px;
    border-right:dotted 1px;
    border-top:dotted 1px;
    padding:10px;
    margin:10px;
    width:35%;
    height:65px;
    border-radius: 5px;
}
div.container {
    border-bottom:dotted 1px;
    border-left:dotted 1px;
    border-right:dotted 1px;
    border-top:dotted 1px;
    padding:10px;
    padding-left:25px;
    margin-bottom:10px;
    position:relative;
    height:65px;
    width:45%;
    top:-97px;
    right:10px;
    border-radius: 5px;
    overflow: hidden;
    float:right;
    clear:right;
}
div.fs {
    border-style:double;
    text-align:center;
    padding:10px;
    margin:10px;
    margin-left:20%;
    width:60%;
    border-radius: 5px;
}

<div class=stuff>
    <img src=/economy/images/cash.png> Cash on Hand: 10,245<br>
    <img src=/economy/images/worker.png> Workers Employed: 6<br>
    <img src=/economy/images/machine.png> Machines Leased: 4
</div>
<div class=container>
    <a href="/economy.php?section=business&do=contribute">Click Here to Manage Cash on Hand.</a><br>
    <a href="/economy.php?section=business&do=moderate">Click Here to Manage this Business.</a><br>
    <a href="/economy.php?section=business&do=info&action=disband&id=7">Click Here to Disband this Business.</a>
</div>
<br>
<div class=fs><a href=/economy.php?section=fs&id=7>Historical Financial Statements</a></div>
  • 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-04T13:47:33+00:00Added an answer on June 4, 2026 at 1:47 pm

    You need to float your left hand div, and use clear:both on the div at the bottom. I’ve made some changes in this jsFiddle.

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

Sidebar

Related Questions

Can we make cross browser css layouts with CSS positioning, without using float? What
Using CSS, when a link is clicked it brings up a hidden DIV that
Using css only, how can I override the css of only the 2nd column
Using css (not a inline one, but external stylesheet) how do i override the
I have been debating using css with div's and laying out elements, and really
I'm having a problem with setting the height of <div> tags using CSS. I'm
I know that CSS only supports left and right values for the float property,
how to render a div next to href link, we are using JQuery. Below
I have a drop down menu using CSS only. I want the drop down
Okay guys I have a question about positioning tables within DIV's using CSS. I

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.