www.webdeveloper.com
Results 1 to 5 of 5

Thread: [RESOLVED] multiple div's move down based on amount of content

  1. #1
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82

    resolved [RESOLVED] multiple div's move down based on amount of content

    2 days and I still can't get these damn DIVs to move down automaticly when I put content inside... Ok heres the code guys:

    The CSS
    Code:
    #bg {width:950px;margin:25px auto 0 auto;background-image:url(something.jpg);}
    #all {width:921px;margin:0 0 0 14px;padding:0;}
    The HTML
    Code:
    <div id="bg"> 
    <div id="all"> 
    I want both of these to automaticly move down based on how much content is entered!
    <br>
    <br>
    ETC.
    </div>
    </div>
    its tricky, ill post the folder too which might be required for you to understand whats going on here...
    Attached Files Attached Files
    Last edited by Natdizzle; 10-05-2008 at 10:19 PM.

  2. #2
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82

    Thumbs up

    so if I put "float:left or float:right;" on the ID for #bg {}

    then i get the effect I want.. although its floating left which is not what I want. hmm I think what i need to do is have a container for #bg **** I dont know

  3. #3
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    not sure what "the effect" is, but
    1. add a doctype or ie goes into quirks mode and other browsers go to defaults
    2. move the <ul> outside of the <h3>

    ???
    why set body height?
    what is #all for??
    why does #bg have a height?
    you have rounded corners graphics in the folder - are you going to use them in the design?

    lots of questions, but i can't picture the design......

    if you take out the height for #bg it behaves correctly(?)

  4. #4
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82

    Thumbs up

    ???
    why set body height?
    Because I am indeed a "JR. Web Developer".

    what is #all for??
    Good question... heh. It's there to hold my content, but i suppose i could achieve the same results if I combined '#all' with '#bg', while adjusting the margin.

    why does #bg have a height?
    Only to demonstrate my problem. If I don't specify a height, the background-image will not display past the '#header' tag; which is my problem.

    you have rounded corners graphics in the folder - are you going to use them in the design?
    Those in particular will not be used for the design.

    Thanks Opi

  5. #5
    Join Date
    Sep 2008
    Location
    Old North Sacramento
    Posts
    82

    Thumbs up

    So, I merged those 2 IDs together and set the overflow to auto... worked perfect.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles