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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:43:02+00:00 2026-06-11T06:43:02+00:00

I’m completely new to CSS, and confused as heck, and more or less just

  • 0

I’m completely new to CSS, and confused as heck, and more or less just getting frustrated with floats, or positions, or anything like that. I’ll try and explain best I can

DIV1                 DIV2
DIV3 DIV4       

DIV5   DIV6   DIV7   DIV8
DIV9                 
                     DIV10

So that’s the layout i’m looking for. My trial and error’s are all messed up. I have Div1:float:left;div2:float:left
div3:clear. Everything works upto that point. I want div4 to go right beside div3, and then 5,6,7,8 to clear 3 and 4 and then go all beside eachother.
Any thoughts? I would say the hell with it and do fixed positions on everything, but that’s getting frustrating trying to figure out positions as well.

I’ve added in my code here. This has been messed, and played around with. I have height and width variables not because i need them, just playing around trying to make things fit

<style>

#div-1
{
    float:left;
    width:390px;
    height: 170px;

}
#div-2
{
    float:right;
    text-align:right;
    width:450px;
}
#div-3
{
    width:80px;
    height:60px;
    clear:left;
    text-align:left;
}
#div-4
{
    border:dashed 2px;
    float:left;
}
#div-5
{
    float:left;
    top:350px;
}
</style>
  • 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-11T06:43:04+00:00Added an answer on June 11, 2026 at 6:43 am

    Here is your grid laid out for you, you can see where I added the floats/clears:
    http://codepen.io/mastastealth/pen/xyeli

    HTML:

    <div class="main">
      <div class="left">1</div>
      <div class="right">2</div>
    
      <div class="left clear-left">3</div>
      <div class="left">4</div>
    
      <div class="left clear-left">5</div>
      <div class="left">6</div>
      <div class="left">7</div>
      <div class="left">8</div>
    
      <div class="left">9</div>
      <div class="right clear-left">10</div>
    </div>
    

    CSS:

    .main { width: 800px; }
    
    .main div { 
      background: #abc123; text-align: center;
      line-height: 50px; width: 200px; 
      box-shadow: inset 0 0 1px #000;
      margin-bottom: 10px;
    }
    
    div.left { float: left; }
    div.right { float: right; }
    
    div.clear-left { clear: left; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.