/    Sign up×
Community /Pin to ProfileBookmark

[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;}
[/CODE]

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>
[/CODE]

its tricky, ill post the folder too which might be required for you to understand whats going on here…

[upl-file uuid=5e9d0415-7e80-40fb-9887-b980c6e56192 size=84kB]cool.zip[/upl-file]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@NatdizzleauthorOct 06.2008 — 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
Copy linkTweet thisAlerts:
@opifexOct 06.2008 — 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[I] correctly(?)[/I]
Copy linkTweet thisAlerts:
@NatdizzleauthorOct 06.2008 — ???

why set body height?[/QUOTE]


Because I am indeed a "[B]JR.[/B] Web Developer".

what is #all for??[/QUOTE]

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?[/QUOTE]

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?[/QUOTE]

Those in particular will not be used for the design.

Thanks Opi
Copy linkTweet thisAlerts:
@NatdizzleauthorOct 06.2008 — So, I merged those 2 IDs together and set the overflow to auto... worked perfect.

Thanks
×

Success!

Help @Natdizzle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...