/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] <div> boxes

Hi,

I am having trouble with my div boxes. I have two boxes that I want stacked one on top of the other, but shouldn’t a simple <br> between the boxes do the trick? The problem is that they are appearing side-by-side. And I don’t want to have to add a bunch of <br>’s to get the one box to appear beneath the other box. Any help would be appreciated. Thanks!

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@rpgfan3233Jun 24.2008 — They should automatically stack unless they are displayed as inline elements, floated or otherwise positioned in a strange manner, all of which is done via CSS.
Copy linkTweet thisAlerts:
@imclemorauthorJun 24.2008 — Yeah, I am using CSS. I figured it out, though. All we needed to do was to add another div around them (the two inner divs) and float it to the right.
×

Success!

Help @imclemor 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.18,
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,
)...