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 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

Related Questions

I have read several questions regarding this but I fear they may be out
I have read several articles here and else where that it is OK to
I have read several articles on when to use nested classes, but none that
I have read through several reviews on Amazon and some books seem outdated. I
I have read in several places that it's possible to share the objects directory
I'm quite confused about several books in .NET that I have read. Would someone
I have read several articles/questions/forums discussing the best auto-complete plugin for jQuery. After trying
Several articles and blogs I have read suggest placing assemblies I wish to make
I have read several articles and several stackoverflow.com posts about expression tree. It is
I've read several articles about push button events in Qt but none seem to

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.