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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:00:34+00:00 2026-05-10T15:00:34+00:00

If you have several div s on a page, you can use CSS to

  • 0

If you have several divs on a page, you can use CSS to size, float them and move them round a little… but I can’t see a way to get past the fact that the first div will show near the top of the page and the last div will be near the bottom! I cannot completely override the order of the elements as they come from the source HTML, can you?

I must be missing something because people say ‘we can change the look of the whole website by just editing one CSS file.’, but that would depend on you still wanting the divs in the same order!

(P.S. I am sure no one uses position:absolute on every element on a page.)

  • 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. 2026-05-10T15:00:35+00:00Added an answer on May 10, 2026 at 3:00 pm

    With Floating, and with position absolute, you can pull some pretty good positioning magic to change some of the order of the page.

    For instance, with StackOverflow, if the markup was setup right, the title, and main body content could be the first 2 things in the markup, and then the navigation/search, and finally the right hand sidebar. This would be done by having a content container with a top margin big enough to hold the navigation and a right margin big enough to hold the sidebars. Then both could be absolutely positioned in place. The markup might look like:

    h1 {   position: absolute;   top: 0;   left: 0; }  #content {   margin-top: 100px;   margin-right: 250px; }  #nav {   position: absolute;   top: 0;   left: 300px; }  #side {   position: absolute;   right: 0;   top: 100px; }
    <h1> Stack Overflow </h1> <div id='content'>   <h2> Can Css truly blah blah? </h2>   ... </div> <div id='nav'>   <ul class='main'>     <li>quiestions</li> ... </ul>   .... </div> <div id='side'>   <div class='box'>     <h3> Sponsored By </h3>     <h4> New Zelands fish market </h4>     ....   </div> </div>

    The important thing here is that the markup has to be done with this kind of positioning magic in mind.

    Changing things so that the navbar is on the left and the sidebar below the nav be too hard.

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

Sidebar

Ask A Question

Stats

  • Questions 58k
  • Answers 58k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer As Mr. Shiny and New mentions, above, the right way… May 11, 2026 at 8:50 am
  • added an answer Herb Sutter wrote about it in 2005: The Free Lunch… May 11, 2026 at 8:50 am
  • added an answer If you have a fixed number of variables it may… May 11, 2026 at 8:50 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

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.