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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:59:58+00:00 2026-05-11T06:59:58+00:00

I have read several articles regarding templates for web site content. They all seem

  • 0

I have read several articles regarding templates for web site content. They all seem to recommend that the columns should be placed on your site via floats. Example:

<div id='container' style='width: 1000px;'>     <div id='main_content' style='border: solid 1px Black; width: 798px; /* width = 800px -2px for border */ float: left; height: 400px;' ></div>      <div id='links_menu' style='border: solid 1px Black; width: 198px; float: right; height: 600px;'></div>       </div> 

However, I always manage to mangle my content whenever I use floats. I spend more time trying to determine where to put my <div syle='clear:both;' />‘s than I do actually designing the look and feel of the site. Also, whenever I place one of our third party ComponentArt controls inside a floated container, it manages to get mangled and require me to specify heights and widths, which aren’t determined until run time.

Furthermore, I have found that when I use absolute positioning, things seem to work out better for me. Example:

<div style='width: 1000px; height: 600px; position: relative;'>     <div style='border: solid 1px Black; width: 798px; position: absolute; top: 0; left: 0; height: 400px;'></div>     <div style='border: solid 1px Black; width: 198px; position: absolute; top: 0; right: 0; height: 600px;'></div> </div> 

Anyway, I am still relatively new to Stylesheets and HTML, so I would like to throw this out there to you all to see what you think about this alternative for content placement. Do you see any negatives to this approach? I’ve tried in most browsers and they all seem to render correctly, but I don’t know what the future holds… Or maybe, someone can recommend a better way to float my containers so that the inner content is not floated as well. I’m definitely open to suggestions, and appreciate any feedback that you can provide.

Thanks in advance for your help!

CJAM

  • 1 1 Answer
  • 1 View
  • 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-11T06:59:59+00:00Added an answer on May 11, 2026 at 6:59 am

    A big problem with absolutely-positioned containers is placing content on the page below them when you don’t know their heights ahead of time. In your example you have defined the heights of your absolutely-positioned elements, so this shouldn’t be a problem for you. If it works for you, use it.

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

Sidebar

Ask A Question

Stats

  • Questions 239k
  • Answers 239k
  • 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
  • Editorial Team
    Editorial Team added an answer This means that an application on your computer is listening… May 13, 2026 at 7:01 am
  • Editorial Team
    Editorial Team added an answer The reason it is not working is that your first… May 13, 2026 at 7:01 am
  • Editorial Team
    Editorial Team added an answer It ended up being an issue with remote repositories over… May 13, 2026 at 7:01 am

Related Questions

I was reading the following article: http://odetocode.com/articles/294.aspx This article raised me a lot of
I am using the .NET 2.0/3.5 framework for my application. I need to run
I have read several articles and several stackoverflow.com posts about expression tree. It is
I want to enable NSZombies for my iPhone app. I have read several articles

Trending Tags

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

Top Members

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.