/    Sign up×
Community /Pin to ProfileBookmark

Move stuff after ‘floating’ div

Hi! I have a div:

[code=html]
<div name=’divi’ id=’divi’ style=”position: relative; top: 300px; border: 1px #000000 solid; width:450px; height: 250px;”>
[/code]

and some other stuff coming after it:

[code=html]
<div id=’second’ style=”position: relative; top: 300px;”>
contents, pula. maybe later
<br />
{include file=$tpath|cat:’footer.html’} {* smarty tags *}
</div>
[/code]

How can I make div ‘second’ move after div ‘divi’, no matter where it’s top is, and how tall it is?

Please bare with me, since I’m really new to CSS, and i’m trying to switch from table layouts.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@CentauriSep 11.2007 — Position using margins and / or floats rather than by "pulling" around with relative positioning :[CODE]<div name='divi' id='divi' style="margin-top: 300px; border: 1px #000000 solid; width:450px; height: 250px;">
.. some content ..
</div>
<div id='second'>
contents, pula. maybe later <br /> {include file=$tpath|cat:'footer.html'} {* smarty tags *}
</div>[/CODE]
×

Success!

Help @kvirri 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.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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