How can I shift up a div and all divs that follow it?


Tags: html,css

Problem :

I have two divs that I want to appear on top of each other. I was able to do this by setting the top in css. My problem is that now there is a big gap where the div used to be. I would like to get all of the subsequent content to float up and fill that gap.

You can see the fiddle here: http://jsfiddle.net/MzvC4/

Any suggestions on how to achieve this?



Solution :

Should be able to do this:

            #Navigation{
                position:absolute;
                margin-top:-250px; //or whatever px it is
            }

http://jsfiddle.net/MzvC4/1/


    CSS Howto..

    how to change the colour property of tag used for a text

    How do I enlarge images on a web page

    How to design the data that you gathered from the table

    CSS: How to use vmin unit in IE9?

    How to select every 4th div inside another div CSS Selector [closed]

    How to stop JQuery Animate function from moving entire page

    How to keep indent in lists with CSS?

    How to make link unclickable using CSS or jquery? [duplicate]

    CSS how to position element fixed just for y-axis?

    When and how to use !important CSS property in a bookmarklet with cross domains?

    How do I make an image semi-transparent?

    How to create mirrored image effect with CSS single element

    how to encode .css file?

    How to program an
      image gallery, where the hover effect impacts more than 1 element? [closed]

    How to implement this to my index.html?

    css how to depend one div to another one in auto adjusting width

    How to adjust Capybara finders on a site using css-modules?

    How to fill the width under an image with a caption without defining the width of the caption?

    How to make CSS drawn character responsive inside bootstrap column

    How to create square around glyphicon bootstrap?

    How do I keep multiple DIVs the same height using jQuery?

    How to align a table menu to an Banner

    How can I override CSS id?

    CSS: How to set position absolute of a span inside a relative-position-div which contains [closed]

    css. How to write (code) css for different window widths?

    How to align buttons arround a circle image

    How to build the whole web site from css design [closed]

    Slideshow with specific Text on each Image

    How to override css-setting for the elements of nested table?

    how to decrease space between headings?