Div relative positioning white space where div would ordinarily go

Posted on 2009-02-20
Last Modified: 2012-05-06
Hello. I'm using text-align:center in my body to center a div so it will float horizontally when the screen stretches. In my main body div container I have text-align:left to readjust the content in the floating space. Problem is I have to position my divs relative and there is all this huge white space beneath my divs where they would otherwise go.

I understand that this is supposed to happen, but how do I get rid of it. I've tried wrapping divs a whole bunch of different ways.

Please help it is driving me crazy!!! thanks in advance!
Question by:animated405
    LVL 42

    Accepted Solution

    The best way to get rid of it is to use a different positioning/layout technique. Floats and margins are very useful.

    Author Closing Comment

    sory for the late response, got passed that and now into another issue. thanks again not sure why i got caught up on relative positioning...

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
    In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now