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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:51:48+00:00 2026-05-13T10:51:48+00:00

Evening All, Had a question on whether or not the use of Absolute postioning

  • 0

Evening All,

Had a question on whether or not the use of Absolute postioning in my context would be considered wrong by the CSS gods. Basically what I am doing is using it to position images for the header bar of my website.

We can use SO as a good example. So the main logo at the top of our page is StackOverFlow followed by a menu. On the right side we have Ask Question. Now pretend with me that both of those elements are pictures. Would it be considered within reason to absolutely position those so that we don’t have to fight with any other CSS div positioning?

Cheers,

Mike

  • 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-13T10:51:48+00:00Added an answer on May 13, 2026 at 10:51 am

    In my experience, you will generally find yourself disappointed with absolute positioning over, say, floats, meaning you’ll find some nasty corner cases that will make the whole exercise a hair-pulling experience.

    The one exception to that is relative+absolute positioning. When used properly that can be incredibly useful.

    But to do a heading like on the SO site I would probably just use floats.

    <div id="header">
      <img id="left" src="image1.png">
      <img id="right" src="image2.png">
    </div>
    

    with:

    #header { overflow: hidden; }
    #left { float: left; }
    #right { float: right; }
    

    Most of the time, that’s problem solved.

    It may be that only one of these needs to be floated. If its the one on the left:

    <div id="header">
      <img id="left" src="image1.png">
      <div id="right">Some more content</div>
    </div>
    

    with:

    #header { overflow: hidden; }
    #left { float: left; width: 150px; }
    #right { margin-left: 150px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Evening all! I have half a script that I need to change the CSS
I posted this question yesterday evening, which has led me to discover a huge
Evening all, I've written a transfer application that needs to perform an update, then
Evening all. I have created a basic HTML5 site. It validates in W3C validator.
Good evening all. I'm attempting to dynamically populate a select_tag call in my rails
Good evening Stack Overflow, I've got a css issue tonight. I have a fixed-positioned
Good evening I've got a little problem with my DataGridView in a .NET Windows
I've been mucking around with GlassFish v3 prelude this evening. A couple of things
Good morning, afternoon, evening or night (depending on your timezone). This is just a
My last employer had developed an elaborate system which sat on top of SVN

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.